CodeQL library for JavaScript
codeql/javascript-all 0.6.2 ( changelog , source )

Member predicate AstNode :: isAmbient

Holds if this is part of an ambient declaration or type annotation in a TypeScript file.

A declaration is ambient if it occurs under a declare modifier or is an interface declaration, type alias, type annotation, or type-only import/export declaration.

The TypeScript compiler emits no code for ambient declarations, but they can affect name resolution and type checking at compile-time.

predicate isAmbient ( )