Document generic type parameters in JSDOC
In the meantime, support for this feature has been finalized and is now documented on the Closure Compiler JSDOC page for generics. Basically it works like this for ES6 classes: /** @template T */ class Foo { /** @return {T} */ get() { … }; /** @param {T} t */ set(t) { … }; } … Read more