Skip to main content
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://deno.land/x/ts_morph@15.1.0/mod.ts";

Methods

Gets this catch clause's block.

getParent(): NodeParentType<ts.CatchClause>
getParentOrThrow(): NonNullable<NodeParentType<ts.CatchClause>>

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

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