npm.io
1.0.4 • Published 3 years ago

@types/find-config

Licence
MIT
Version
1.0.4
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.5K

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 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Luke James.