Installation
npm install --save @types/find-parent-dir
Summary
This package contains type definitions for find-parent-dir (https://github.com/thlorenz/find-parent-dir).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-parent-dir.
index.d.ts
/**
* Finds the first parent directory that contains a given file or directory.
*/
declare function findParentDir(
currentFullPath: string,
clue: string,
cb: (err: any, dir: string | null) => void,
): void;
declare namespace findParentDir {
function sync(currentFullPath: string, clue: string): string | null;
}
export = findParentDir;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Ika.