-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generation
Milestone
Description
In a JS file, this typedef doesn't work
/**
* @typedef {{
* krazy: 'chad',
* and: 'his',
* tag: 'team'
* }}
* Show */
Expected behavior:
No parse errors, and the type is the same as the single-line version
Actual behavior:
Lots of parse errors.
The problem is that JSDoc type parsing uses the Typescript parser, which does not expect asterisks.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generation