webdoc-labs / webdoc

Documentation generator for the web
https://www.webdoclabs.com
Other
79 stars 9 forks source link

support import types for pure JS files #200

Open obiot opened 1 year ago

obiot commented 1 year ago

using this fix issues with generated TypeScript definition where defined @types in JSDoc are not being found :

for example

/** 
 * @type {import('./../physics/body.js').Body}
 */

But as of now, this generates an unknown value with webdoc:

body
body: unknown

unknown

See as well below for a good article better explaining it : https://darekkay.com/blog/javascript-type-comments/