Skip to content

Support multiple @template tags in JSDoc #23908

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
/**
 * @template {T}
 * @template {U}
 * @typedef Morphism {(x: T) => U}
 */

Currently we refuse to accept the second @template:

[js] 'template' tag already specified.

But Closure does accept this syntax.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions