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

    1.0.1 • Public • Published

    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

    // Type definitions for find-config 1.0
    // Project: https://github.com/shannonmoeller/find-config
    // Definitions by: Luke James <https://github.com/itslukej>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    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: Thu, 08 Jul 2021 12:01:37 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Luke James.

    Keywords

    none

    Install

    npm i @types/find-config

    DownloadsWeekly Downloads

    2,928

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.49 kB

    Total Files

    4

    Last publish

    Collaborators

    • types