Skip to main content
Module

x/ts_morph/mod.ts>Directory#getDirectoryOrThrow

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Directory.prototype.getDirectoryOrThrow
import { Directory } from "https://deno.land/x/ts_morph@15.1.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.