@types/find-parent-dir
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

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.

/@types/find-parent-dir/

    Package Sidebar

    Install

    npm i @types/find-parent-dir

    Weekly Downloads

    727

    Version

    0.3.3

    License

    MIT

    Unpacked Size

    3.28 kB

    Total Files

    5

    Last publish

    Collaborators

    • types