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

Member predicate ExportDefaultSpecifier::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()