Skip to main content
Module

x/ts_morph/ts_morph.d.ts>Directory#getParentOrThrow

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

Gets the parent directory or throws if it doesn't exist or was never added to the project.

Parameters

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