CodeQL library for JavaScript

Member predicate ImportDefaultSpecifier::getImportedName

Gets the name of the imported symbol.

For example, consider these four imports:

import { x } from 'a'
import { y as z } from 'b'
import f from 'c'
import * as g from 'd'

The names of the imported symbols for the first three of them are, respectively, x, y and default, while the last one does not import an individual symbol.

string getImportedName()