Module

x/ts_morph/mod.ts>Directory#getDirectoryOrThrow

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

Gets a child directory with the specified path or throws if not found.

Parameters

path: string
  • Relative path from this directory or absolute path.

Gets a child directory by the specified condition or throws if not found.

Parameters

condition: (directory: Directory) => boolean
  • Condition to check the directory with.