CodeQL library for JavaScript

Member predicate ExportSpecifier::getExportedName

Gets the name under which the symbol is exported.

For example, consider these five exports:

export { x }
export { y as z }
export function f() {}
export default 42
export * from 'd'

The exported names for the first four of them are, respectively, x, z, f and default, while the last one does not have an exported name since it does not export a unique symbol.

string getExportedName()