Installation
npm install --save @types/find-config
Summary
This package contains type definitions for find-config (https://github.com/shannonmoeller/find-config).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-config.
index.d.ts
declare namespace findConfig {
interface Options {
cwd?: string | undefined;
dir?: string | undefined;
dot?: boolean | undefined;
home?: boolean | undefined;
module?: boolean | undefined;
}
interface ReadOptions extends Options {
encoding?: string | undefined;
flag?: string | undefined;
}
function obj(filename?: string, options?: Options): { cwd: string; dir: string; path: string } | null;
function read(filename?: string, options?: ReadOptions): string | null;
function require(filename?: string, options?: Options): any;
}
declare function findConfig(filename?: string, options?: findConfig.Options): string | null;
export = findConfig;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Luke James.