1.0.4 • Published 7 months ago

@types/find-config v1.0.4

Weekly downloads
1,463
License
MIT
Repository
github
Last release
7 months ago

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.