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

Member predicate ExportDeclaration::getImportAssertion

DEPRECATED: use getImportAttributes instead. 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 getImportAssertion()