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

2.0.5 • Public • Published

Installation

npm install --save @types/git-branch

Summary

This package contains type definitions for git-branch (https://github.com/jonschlinkert/git-branch).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-branch.

index.d.ts

export = GitBranch;

declare function GitBranch(cwd?: string): Promise<string>;
declare function GitBranch(cwd?: string, callback?: (err: null | string, name: string) => void): void;
declare function GitBranch(callback: (err: null | string, name: string) => void): void;

declare namespace GitBranch {
    function sync(cwd?: string): string;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/git-branch

Weekly Downloads

6,319

Version

2.0.5

License

MIT

Unpacked Size

3.04 kB

Total Files

5

Last publish

Collaborators

  • types