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

Member predicate TypeName::getType

Gets the “self type” that refers to this canonical name.

For a generic class or interface, the type arguments on the self type all refer to the corresponding type parameters declared on that class or interface.

For example, the “self type” of Array is Array<T>, where T refers to the type parameter declared on the Array type.

TypeReference getType()