webdoc icon indicating copy to clipboard operation
webdoc copied to clipboard

support import types for pure JS files

Open obiot opened this issue 2 years ago • 0 comments

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/

obiot avatar May 27 '23 01:05 obiot