Skip to main content
Module

x/ts_morph/ts_morph.d.ts>CatchClause

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class CatchClause
extends CatchClauseBase<ts.CatchClause>
import { CatchClause } from "https://deno.land/x/ts_morph@22.0.0/ts_morph.d.ts";

Methods

getBlock(): Block

Gets this catch clause's block.

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

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.