2.0.3 • Published 6 months ago

@types/gitconfiglocal v2.0.3

Weekly downloads
5,905
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/gitconfiglocal

Summary

This package contains type definitions for gitconfiglocal (https://github.com/soldair/node-gitconfiglocal#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gitconfiglocal.

index.d.ts

// Type definitions for gitconfiglocal 2.0
// Project: https://github.com/soldair/node-gitconfiglocal#readme
// Definitions by: Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

declare namespace gitconfig {
    interface GitConfig {
        [key: string]: any;
    }

    type callback = (error: Error | false, config: GitConfig) => void;

    interface Options {
        gitDir?: string | undefined;
    }
}

declare function gitconfig(dir: string, options: gitconfig.Options, cb: gitconfig.callback): void;
declare function gitconfig(dir: string, cb: gitconfig.callback): void;

export = gitconfig;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:09 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Florian Keller.