Installation
npm install --save @types/find-cache-dir
Summary
This package contains type definitions for find-cache-dir (https://github.com/avajs/find-cache-dir#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-cache-dir.
export = findCacheDir;
declare function findCacheDir(options: findCacheDir.OptionsWithThunk): ((...pathParts: string[]) => string) | undefined;
declare function findCacheDir(options: findCacheDir.Options): string | undefined;
declare namespace findCacheDir {
interface Options {
name: string;
files?: string | string[] | undefined;
cwd?: string | undefined;
create?: boolean | undefined;
thunk?: boolean | undefined;
}
interface OptionsWithThunk extends Options {
thunk: true;
}
}
Additional Details
- Last updated: Tue, 06 Jul 2021 20:32:58 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by BendingBender, and Piotr Błażejewicz.