Closed arv closed 5 years ago
We used to generate:
/** @type {function(number): string} */ Comp.staticMethod;
but that does not allow type parameters. By Using the following syntax we can support type parameters.
/** * @param {!Array[T]} p0 * @return {T} * @template T */ Comp.staticMethod;
We still need to use the @type syntax for abstract optional methods but we could potentially figure out a way to allow type parameters there too by using a temporary typedef and using typeof types.
@type
TBR
LGTM
We used to generate:
but that does not allow type parameters. By Using the following syntax we can support type parameters.
We still need to use the
@type
syntax for abstract optional methods but we could potentially figure out a way to allow type parameters there too by using a temporary typedef and using typeof types.