CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-dev (changelog, source)
Search

Member predicate TypeAccess::getNumTypeArgument

Gets the number of type arguments provided to this type by the enclosing generic type expression, if any, or 0 otherwise.

For example, in Array<number>, the Array part is a type access having 1 type argument.

int getNumTypeArgument()