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

ExportSpecifier

Extends:

NodeModuleSpecifier → ExportSpecifier

A non-default export. Used in an ExportNamedDeclaration. For export { a } from "source", just pass one argument local will = exported. For export { a as b }, make exported b and local a.

Constructor Summary

Public Constructor
public

constructor(exported: *, 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(exported: *, local: *) source

Params:

NameTypeAttributeDescription
exported *
local *

Public Members

public exported: Identifier source

public local: Identifier source