UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

35 lines (34 loc) 972 B
import * as ts from "typescript"; import { Node, Identifier } from "./../common"; import { ExportDeclaration } from "./ExportDeclaration"; export declare class ExportSpecifier extends Node<ts.ExportSpecifier> { /** * Sets the name of what's being exported. */ setName(name: string): this; /** * Renames the name of what's being exported. */ renameName(name: string): this; /** * Gets the name node of what's being exported. */ getNameNode(): Identifier; /** * Sets the alias for the name being exported. * @param alias - Alias to set. */ setAlias(alias: string): this; /** * Gets the alias identifier, if it exists. */ getAliasIdentifier(): Identifier | undefined; /** * Gets the export declaration associated with this export specifier. */ getExportDeclaration(): ExportDeclaration; /** * Removes the export specifier. */ remove(): void; }