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

Fix emit destructuring in declaration file #2401

Closed
wants to merge 2 commits into from

Conversation

yuit
Copy link
Contributor

@yuit yuit commented Mar 17, 2015

Fix following issue #2023.

Additional suggestion regarding emitting destructing in declaration file is allow destructuring in parameter position in ambient context so that language service can provide better signature help using information from .d.ts

@@ -0,0 +1,10 @@
// @declaration: true
var {a, b} = { a:10, b:"10"};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a test for something that does not use an exported type

module M {
    class c {}
    export var {a } : {a:C};
}

@mhegazy
Copy link
Contributor

mhegazy commented Mar 18, 2015

looks like this is already fixed in 649cd3b

@yuit
Copy link
Contributor Author

yuit commented Mar 18, 2015

This PR #2025 has handled it

@yuit yuit closed this Mar 18, 2015
@yuit yuit deleted the fixEmitDestructuringInDeclarationFile branch March 18, 2015 22:10
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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

Successfully merging this pull request may close these issues.

4 participants