typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

JSDoc types don't parse, even outside JSDoc

Open sandersn opened this issue 1 year ago • 2 comments

See tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts

sandersn avatar Dec 06 '24 14:12 sandersn

Excuse my ignorance, but why JSDoc? Microsoft has also made @microsoft/tsdoc; wouldn't it be useful to support that directly instead?

ernieIzde8ski avatar Mar 13 '25 23:03 ernieIzde8ski

JSDoc is a syntax, TSDoc is a subset of it (which also explicitly ignores types in favor of TS type annotations, which will not work in JS files, where JSDoc types are the only choice).

jakebailey avatar Mar 13 '25 23:03 jakebailey

This is fixed now.

sandersn avatar May 16 '25 17:05 sandersn