Skip to main content
Module

x/ts_morph/mod.ts>VariableDeclaration#getVariableStatementOrThrow

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method VariableDeclaration.prototype.getVariableStatementOrThrow
import { VariableDeclaration } from "https://deno.land/x/ts_morph@22.0.0/mod.ts";

Gets the corresponding variable statement if it exists. Throws for variable declarations in for statements.

Parameters

optional
message: string | (() => string)