Codiga has joined Datadog!

Read the Blog
Skip to main content

Imported name AST JavaScript Object

The JavaScriptImportedName object matches a JavaScript imported name.

The astType value for this node is importedname.

Code Pattern

This object catches export1, export2 as alias2 in the following code pattern:

import { export1, export2 as alias2 /* … */ } from "module-name";

Attributes