Skip to content

Show inferred types on hover #10884

Closed
Closed
@normalser

Description

@normalser

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[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions