Closed adam-coster closed 1 year ago
JSDocs support the @template tag for defining generics. Even very limited support would be extremely helpful, e.g.
@template
/// @template {Any} T /// @param {T} _data /// @returns {T} function clone(_data) { return __clone_recurse(_data); }
This would allow stronger type support with less code.
Added in v1.12.0
JSDocs support the
@template
tag for defining generics. Even very limited support would be extremely helpful, e.g.This would allow stronger type support with less code.