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

Consider SymbolFlags.Method as function-esque during js declaration emit #36274

Conversation

weswigham
Copy link
Member

The binder binds both "instance methods" and "static methods" of js class-like functions with SymbolFlags.Method. For instance methods, we recover them while emitting instance members, however for static methods, we rely on serializing the static side as a namespace augmentation on the class; so in those cases, we need to emit the method as a function instead.

Fixes #36270

@weswigham weswigham merged commit 9e712dd into microsoft:master Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

static methods omitted from 'allowJs' 'declaration' .d.ts
3 participants