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

Member predicate ExportDeclaration::getImportAttributes

Gets the object literal passed as part of the with (or assert) clause, if this is a re-export declaration.

For example, this gets the { type: "json" } expression in each of the following:

export { x } from 'foo' with { type: "json" };
export * from 'foo' with { type: "json" };
export * as x from 'foo' with { type: "json" };
export * from 'foo' assert { type: "json" };
ObjectExpr getImportAttributes()