Skip to content

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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants