The javascript/externs directory contains externs definitions used to improve the precision of JavaScript analyses within CodeQL. These definitions provide type information for standard environments and libraries that the analyzer might otherwise treat as unknown or imprecise.
Externs are organized into five functional categories:
es: ECMAScript language standard definitions (sourced from Google Closure Compiler).web: Web standards and browser-specific extensions (sourced from Google Closure Compiler).vm: Specific JavaScript Virtual Machine definitions (sourced from Google Closure Compiler).nodejs: Common Node.js module definitions (generated from DefinitelyTyped TypeScript definitions with custom extensions).lib: Definitions for popular third-party JavaScript libraries.