Tag Kind: Block
The @template
tag is used to document a type parameter of a function, method, class, interface or type alias.
TypeDoc recognizes the @template
tag as an alias of @typeParam
for compatibility with JavaScript
projects using TypeScript via doc comments. For TypeScript projects, the TSDoc standard
@typeParam
tag should be preferred.
/**
* @template {string} T - the identity type
*/
export function identity<T>(x) {
return x;
}
@typeParam
tag