CodeQL library for JavaScript

Member predicate LocalTypeAccess::getLocalTypeName

Gets the local type name being referenced by this identifier, if any.

Names that refer to a declaration in an external d.ts file, such as in the built-in lib.d.ts prelude, do not have a local typename.

For example, in Array<number>, the Array name will usually not have a local type name as it is declared in lib.d.ts.

LocalTypeName getLocalTypeName()