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

[Feature request] const's type should using it's value #4166

Closed
zaaack opened this issue Jun 14, 2017 · 2 comments
Closed

[Feature request] const's type should using it's value #4166

zaaack opened this issue Jun 14, 2017 · 2 comments

Comments

@zaaack
Copy link

zaaack commented Jun 14, 2017

e.g.
current:

const white = '#fff'
// typeof white = string

expect:

const white = '#fff'
// typeof white = '#fff'

So in nuclide autocomplete can show the value of consts, just like VS Code.

@0rvar
Copy link

0rvar commented Jun 14, 2017

I think this is a good suggestion. A literal string type is a subtype of string anyway.

@agentcooper
Copy link
Contributor

Duplicate of #2639.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants