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

Member predicate TypeofType::hasQualifiedName

Holds if this refers to a value exported from moduleName under the access path exportedName.

For example, cls.hasQualifiedName("react", "Component") holds if cls refers to the class constructor for Component from the react module.

The exportedName may an empty string if this refers to the module object itself.

predicate hasQualifiedName(string moduleName, string exportedName)