import { VariableDeclaration } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";
Methods
getParent(): NodeParentType<ts.VariableDeclaration>
getParentOrThrow(): NonNullable<NodeParentType<ts.VariableDeclaration>>
Gets the structure equivalent to this node.
getVariableStatement(): VariableStatement | undefined
Gets the corresponding variable statement if it exists. Returns undefined for variable declarations in for statements.
Gets the corresponding variable statement if it exists. Throws for variable declarations in for statements.
remove(): void
Removes this variable declaration.
set(structure: Partial<VariableDeclarationStructure>): this
Sets the node from a structure.