Skip to content

Object destructuring failed with any type #10326

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
unional opened this issue Aug 14, 2016 · 1 comment
Closed

Object destructuring failed with any type #10326

unional opened this issue Aug 14, 2016 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@unional
Copy link
Contributor

unional commented Aug 14, 2016

ts: 2.0.0

const { username } = { username: 'x'}

RHS username is infer as string, but then it error saying username is implicitly any.

image

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Aug 15, 2016
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 2.0.1 milestone Aug 15, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Aug 17, 2016

this is a duplicate of #8229

@mhegazy mhegazy closed this as completed Aug 17, 2016
@mhegazy mhegazy added the Duplicate An existing issue was already created label Aug 17, 2016
@RyanCavanaugh RyanCavanaugh removed the Bug A bug in TypeScript label Aug 17, 2016
@RyanCavanaugh RyanCavanaugh removed this from the TypeScript 2.0.1 milestone Aug 17, 2016
@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
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants