Closed
Description
Can I use TypeScript typings in JSDoc comments and still get full documentation?
Are there any restrictions that should be known?
Regards.
Examples:
/**
* @typedef {import('my-ts-file-or-library').ExportedType} ExportedType
* @typedef {Record<Exclude<"A"|"B"|"C", "C">, string>} InlineTypeScript
*/
/**
* @param {ExportedType} a
* @param {InlineTypeScript} b
*/
function myFunction (a, b) {}
Metadata
Metadata
Assignees
Labels
No labels