Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 13.8k
static methods omitted from 'allowJs' 'declaration' .d.ts #36270
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFix AvailableA PR has been opened for this issueA PR has been opened for this issue
TypeScript Version: Version 3.8.0-dev.20200117
Search Terms:
static method omitted
static method missing
allowJs function missing
Code
This is related to mochajs/mocha/issues/4154, where I'm experimenting with generating .d.ts from Mocha's JS source.
Input is JavaScript, with "allowJs" and "declaration" turned on.
Expected behavior:
With "allowJs" and "declaration" enabled, emits .d.ts that includes
staticMethod. I'm not sure whether it should be included in the class body or with the other exports.Actual behavior:
staticMethod is missing. (though it is included in the
export {...}statement.)Playground Link:
I created a repl.it reproduction that calls the compiler, then prints the emitted d.ts.
https://repl.it/@AndrewBradley/missing-static-method
Related Issues: