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

Better support class instances assigned to the module object for JS declarations #40037

Merged

Conversation

weswigham
Copy link
Member

Fixes #40019

We were confusing an export assigned class instance with that class's static, because we were using identity to check if the instance we have is the symbol's class instance type, and export assigned types get cloned (so they have have additional members augmented into them).

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Aug 13, 2020
@weswigham weswigham merged commit 155610e into microsoft:master Sep 5, 2020
@weswigham weswigham deleted the js-declaration-emit-assigned-exports branch September 5, 2020 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Instance of class exported via module.exports exports the class in generated type definition file
3 participants