static methods omitted from 'allowJs' 'declaration' .d.ts #36270
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Domain: JavaScript
The issue relates to JavaScript specifically
Fix Available
A PR has been opened for this issue
Milestone
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:
The text was updated successfully, but these errors were encountered: