Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show inferred types on hover #10884

Closed
normalser opened this issue Sep 13, 2016 · 1 comment
Closed

Show inferred types on hover #10884

normalser opened this issue Sep 13, 2016 · 1 comment

Comments

@normalser
Copy link

normalser commented Sep 13, 2016

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

@jods4
Copy link

jods4 commented Sep 13, 2016

This has been brought up several times in the past, e.g. #3667, #6118, #10484.

The good news is that a fix seems to finally be near: #10610. 🎉

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants