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

Member predicate TypeAccess::getAsGenericType

Gets the enclosing generic type expression providing type arguments to this type, if any.

For example, in Array<number>, the Array part is a type access with Array<number> being its enclosing generic type.

GenericTypeExpr getAsGenericType()