Skip to content

Multiline JSDoc types don't skip asterisks #23667

Closed
@sandersn

Description

@sandersn

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 TypeScriptDomain: JSDocRelates to JSDoc parsing and type generation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions