documentation icon indicating copy to clipboard operation
documentation copied to clipboard

@typedef imports not working

Open jakobrosenberg opened this issue 3 years ago • 2 comments

Is it possible to make the following code work?

/**
 * @typedef { import("@organization/package/path") } Config
 * /

jakobrosenberg avatar Oct 01 '20 18:10 jakobrosenberg

It isn't supported at this point, for sure. This project mainly tracks usejsdoc, which doesn't include this syntax, whereas I'm guessing this is a TypeScript addition to the jsdoc idea.

tmcw avatar Nov 14 '20 21:11 tmcw

Thanks, that's correct AFAIK. Feel free to close this if it's not on the roadmap.

jakobrosenberg avatar Nov 15 '20 12:11 jakobrosenberg