TypeScript Version: Version 2.1.0-dev.20160911
Code
// A *self-contained* demonstration of the problem follows...
interface Test {
values: string[]
}
const test: Test = {
values: [] // type: undefined[] on hover
}
When you hover values: [] in VSCode it will show type: undefined[] which in theory one could say - 'working as intended' - but would be great if type could be inferred at this level and show to user string[]
TypeScript Version: Version 2.1.0-dev.20160911
Code
When you hover
values: []in VSCode it will show type:undefined[]which in theory one could say - 'working as intended' - but would be great if type could be inferred at this level and show to userstring[]