import { VariableDeclaration } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.d.ts";
Methods
getParent(): NodeParentType<ts.VariableDeclaration>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.VariableDeclaration>>
getVariableStatement(): VariableStatement | undefined
Gets the corresponding variable statement if it exists. Returns undefined for variable declarations in for statements.
getVariableStatementOrThrow(message?: string | (() => string)): VariableStatement
Gets the corresponding variable statement if it exists. Throws for variable declarations in for statements.