Module

x/ts_morph/mod.ts>ModuleDeclaration#getParentOrThrow

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

Parameters

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

Returns

NonNullable<NodeParentType<ts.ModuleDeclaration>>