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

Member predicate TypeReference::hasQualifiedName

Holds if the referenced type is exported from the given module under the given qualified name.

For example, type.hasQualifiedName("react", "Component") holds if type is an instantiation of the React Component class.

predicate hasQualifiedName(string moduleName, string exportedName)