ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
23 lines (22 loc) • 1.1 kB
TypeScript
import * as ts from "typescript";
import { Node } from "./../common";
import { VariableStatementStructure } from "./../../structures";
import { ExportableNode, ModifierableNode, AmbientableNode, DocumentationableNode } from "./../base";
import { NamespaceChildableNode } from "./../namespace";
import { VariableDeclarationList } from "./VariableDeclarationList";
export declare const VariableStatementBase: (new (...args: any[]) => NamespaceChildableNode) & (new (...args: any[]) => DocumentationableNode) & (new (...args: any[]) => AmbientableNode) & (new (...args: any[]) => ExportableNode) & (new (...args: any[]) => ModifierableNode) & typeof Node;
export declare class VariableStatement extends VariableStatementBase<ts.VariableStatement> {
/**
* Fills the node from a structure.
* @param structure - Structure to fill.
*/
fill(structure: Partial<VariableStatementStructure>): this;
/**
* Gets the declaration list of variables.
*/
getDeclarationList(): VariableDeclarationList;
/**
* Removes this variable statement.
*/
remove(): void;
}