CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (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)