-
Couldn't load subscription status.
- Fork 13.1k
Closed
Labels
Domain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Search Terms
jsdoc template
Suggestion
This feature request is based on issue #1178.
#1178 led to the implementation of @template and was closed afterwards.
The current implementation does not allow to add constrains for a generic:
The latest statement from google in 2015 was that they might add it also to the closure-compiler some day:
Use Cases
For //ts-check projects it would be possible to use the full power of generics.
Examples
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript / JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. new expression-level syntax)
JanMiksovsky, brendankenny, janbiasi, jegli, noblica and 8 morenaBausch
Metadata
Metadata
Assignees
Labels
Domain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript


