jsdoc template
This feature request is based on issue #1178.
@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:
For //ts-check projects it would be possible to use the full power of generics.

My suggestion meets these guidelines:
I think this should be:
/**
* @template T {number}
* @param a {T}
*/
function foo(a) { }
Definitely would be helpful. Right now we're using /** @type {...} */ to use bounded generics in js (either defined inline or in an external d.ts file), but that has some serious drawbacks at the moment.
e.g. @type doesn't work on class methods, so we end up assigning the function to the prototype outside of the class body. It's also limited in scope to what's being immediately typed, unlike @template/generics in actual TS, so you can't really apply the type parameters across a whole class, for instance.
Readability is also not a small concern (all crammed into that @type comment :), and being able to declare as regular @params, etc jsdoc tags would be fantastic.
Compatibility with future Closure support isn't super important to us, at least, as we use enough TS-specific features (typeof, indexed access) that we have to do a cleaning pass on the code before passing to Closure anyways. If the solution is reasonable (like the above suggestion), there's also no reason Closure can't adopt it anyways.
Most helpful comment
I think this should be: