Home Reference Source Repository
import {ImportSpecifier} from 'esast/src/ast.js'
public class | source

ImportSpecifier

Extends:

NodeModuleSpecifier → 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:

NameTypeAttributeDescription
imported *
local *

Public Members

public imported: Identifier source

public local: Identifier source