Skip to main content
Module

x/ts_morph/mod.ts>Directory#isAncestorOf

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

Checks if this directory is an ancestor of the provided directory.

Parameters

possibleDescendant: Directory | SourceFile
  • Directory or source file that's a possible descendant.

Returns

boolean