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

Member predicate Variable::isTopLevelWithAmbientDeclaration

Holds if this variable is declared in the top-level of a module using a declare statement.

For example:

declare var $: any;

Such variables are generally treated as a global variables, except for type-checking related purposes.

predicate isTopLevelWithAmbientDeclaration()