import { VariableStatement } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";
Methods
addDeclarations(structures: ReadonlyArray<OptionalKind<VariableDeclarationStructure>>): VariableDeclaration[]
Adds variable declarations to the statement.
getParent(): NodeParentType<ts.VariableStatement>
getParentOrThrow(message?: string | (() => string)): 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.