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

Member predicate ExportDeclaration::getSourceNode

Gets the data flow node corresponding to the value this declaration exports under the name name.

For example, consider the following exports:

export var x = 23;
export { y as z };
export default function f() { ... };
export { x } from 'a';

The first one exports 23 under the name x, the second one exports y under the name z, while the third one exports function f() { ... } under the name default.

The final export re-exports under the name x whatever module a exports under the same name. In particular, its source node belongs to module a or possibly to some other module from which a re-exports.

Node getSourceNode(string name)