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
Consider the following typescript file before it is parsed by this tool:
// example.ts/** @module example *//** */exporttypeHelloWorld={hello: string;world: string;}
It should be converted in such a way that it is equivalent to the following javascript file:
// example.js - expected/** @module example *//** * @typedef {object} HelloWorld * @property {string} hello * @property {string} world */
However, it incorrectly merges the module tag into the generated typedef tag:
// example.js - actual/** @module example * @typedef {object} HelloWorld * @property {string} hello * @property {string} world */
I can only theorize the particulars, but adding a dummy semicolon after the module tag works as a valid workaround:
// example-workaround.ts/** @module example */;/** */exporttypeHelloWorld={hello: string;world: string;}
And even with the workaround, the HelloWorld typedef becomes a member of global scope, and only by explicitly providing the @memberof module:example tag does it become a member of the module.
The text was updated successfully, but these errors were encountered:
Consider the following typescript file before it is parsed by this tool:
It should be converted in such a way that it is equivalent to the following javascript file:
However, it incorrectly merges the module tag into the generated typedef tag:
I can only theorize the particulars, but adding a dummy semicolon after the module tag works as a valid workaround:
And even with the workaround, the HelloWorld typedef becomes a member of global scope, and only by explicitly providing the
@memberof module:example
tag does it become a member of the module.The text was updated successfully, but these errors were encountered: