import { VariableStatement } from "https://dotland.deno.dev/x/ts_morph@15.1.0/mod.ts";
Methods
addDeclarations(structures: ReadonlyArray<OptionalKind<VariableDeclarationStructure>>): VariableDeclaration[]
Adds variable declarations to the statement.
getParent(): NodeParentType<ts.VariableStatement>
getParentOrThrow(): NonNullable<NodeParentType<ts.VariableStatement>>
insertDeclaration(index: number, structure: OptionalKind<VariableDeclarationStructure>): VariableDeclaration
Inserts a variable declaration at the specified index within the statement.
insertDeclarations(index: number, structures: ReadonlyArray<OptionalKind<VariableDeclarationStructure>>): VariableDeclaration[]
Inserts variable declarations at the specified index within the statement.