Closed
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)