jsdoc-tsimport-plugin icon indicating copy to clipboard operation
jsdoc-tsimport-plugin copied to clipboard

relative path not working.

Open trusktr opened this issue 1 year ago • 0 comments

Hello! I tried this:

/** @typedef {import('../../../../node_modules/@babylonjs/core/node.js').Node} BabylonNode */

and it results in the error:

ERROR: Unable to parse a tag's type expression for source file /Users/trusktr/src/autonomys+unnamed-experiment/submodules/amazon-sumerian-hosts/packages/amazon-sumerian-hosts-babylon/src/Babylon.js/HostObject.js in line 20 with tag title "typedef" and text "{import('../../../../node_modules/@babylonjs/core/node.js').Node} BabylonNode": Invalid type expression "import('../../../../node_modules/@babylonjs/core/node.js').Node": Expected "!", "=", "?", "[]", "|", or end of input but "(" found.

This does not have an error:

/** @typedef {import('@babylonjs/core/node.js').Node} BabylonNode */

but the output docs contains module:@babylonjs/core/node.js~Node as the type in the doc, and does not link to the Node type.

trusktr avatar Feb 17 '24 08:02 trusktr