Module

x/ts_morph/ts_morph.d.ts>Project#getDirectory

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

Gets a directory by the specified path or returns undefined if it doesn't exist.

Parameters

dirPath: string
  • Directory path.

Returns

Directory | undefined