Skip to main content
Module

x/ts_morph/mod.ts>Directory#isDescendantOf

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

Checks if this directory is a descendant of the provided directory.

Parameters

possibleAncestor: Directory
  • Directory or source file that's a possible ancestor.

Returns

boolean