Skip to content

Support multiple @template tags in JSDoc #23908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DanielRosenwasser opened this issue May 4, 2018 · 1 comment · Fixed by #24600
Closed

Support multiple @template tags in JSDoc #23908

DanielRosenwasser opened this issue May 4, 2018 · 1 comment · Fixed by #24600
Assignees
Labels
Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation Fixed A PR has been merged for this issue

Comments

@DanielRosenwasser
Copy link
Member

/**
 * @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.

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Salsa Domain: JSDoc Relates to JSDoc parsing and type generation labels May 4, 2018
@mhegazy
Copy link
Contributor

mhegazy commented May 4, 2018

We do not support this for functions either.

@mhegazy mhegazy modified the milestones: TypeScript 2.9, TypeScript 3.0 May 4, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jun 4, 2018
@microsoft microsoft locked and limited conversation to collaborators Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation Fixed A PR has been merged for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants