ImportSpecifier
Extends:
Node → ModuleSpecifier → ImportSpecifier
A non-default import. Used in an ImportDeclaration.
For import { a } from "source"
, just pass one argument and local will = imported.
For import { a as b } from "source"
, make imported a
and local b
.
Constructor Summary
Public Constructor | ||
public |
constructor(imported: *, local: *) |
Member Summary
Public Members | ||
public |
|
|
public |
|
Inherited Summary
From class Node | ||
public get |
type: * For compatibility with other AST representations,
all Node instances have a 'type' property that is the name of that type.
|
|
public |
toJSON(): * Convert to JSON.
|
|
public |
toString(): * |
Public Constructors
public constructor(imported: *, local: *) source
Params:
Name | Type | Attribute | Description |
imported | * | ||
local | * |