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

Member predicate ImportTypeExpr::isVarTypeAccess

Holds if this import is used in the context of a variable type, such as let x: typeof import("fs").

predicate isVarTypeAccess()