You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that if the method is not static, it properly generates the declaration file.
Also, please don't ask me why this is in the DevTools codebase. I only found out that we did when TypeScript started complaining about missing methods even though they were defined. I then spend a long time trying to figure out what the issue was, until I discovered the property assignment. When I changed the property assignment to a normal variable declaration, TS was properly emitting the method again.
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
TypeScript Version: 4.0.0-dev.20200512
Search Terms: jsdoc, declaration, static method
Code
clazz.js
:tsconfig.json
:Expected behavior:
The emitted declaration file is:
Actual behavior:
Note that if the method is not static, it properly generates the declaration file.
Also, please don't ask me why this is in the DevTools codebase. I only found out that we did when TypeScript started complaining about missing methods even though they were defined. I then spend a long time trying to figure out what the issue was, until I discovered the property assignment. When I changed the property assignment to a normal variable declaration, TS was properly emitting the method again.
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: