Skip to content

Destructuring assignment can't judge type #29005

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

Closed
aloha-zzz opened this issue Dec 13, 2018 · 3 comments
Closed

Destructuring assignment can't judge type #29005

aloha-zzz opened this issue Dec 13, 2018 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@aloha-zzz
Copy link

aloha-zzz commented Dec 13, 2018

lark20181213223351

But when i don't use Destructuring assignment, it is in line with expectations.
image

@j-oliveras
Copy link
Contributor

Can you follow the bug issue template? Is much better to paste the code inside a code block.

Anyway, I think this is duplicate of #28981 and #27497: typescript don't track related variables (for example when destructuring).

@weswigham weswigham added the Duplicate An existing issue was already created label Dec 13, 2018
@weswigham
Copy link
Member

@j-oliveras is correct.

@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants