better-docs
better-docs copied to clipboard
How to document generic type parameters?
Given:
interface Collection<T>
{}
How can one document type parameter T?
https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html states Declaring generic classes or types is unsupported.
I propose using the Javadoc syntax @param <T> description.