Module

x/ts_morph/mod.ts>CatchClause

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class CatchClause
extends CatchClauseBase<ts.CatchClause>
import { CatchClause } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";

Methods

Gets this catch clause's block.

getParent(): NodeParentType<ts.CatchClause>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.CatchClause>>

Gets this catch clause's variable declaration or undefined if none exists.

getVariableDeclarationOrThrow(message?: string | (() => string)): VariableDeclaration

Gets this catch clause's variable declaration or throws if none exists.