7 lines
135 B
JavaScript
7 lines
135 B
JavaScript
//// [contextualTyping8.ts]
|
|
var foo:{id:number;}[] = [<{id:number;}>({})];
|
|
|
|
//// [contextualTyping8.js]
|
|
var foo = [
|
|
({})
|
|
];
|