DefinitelyTyped/types/current-git-branch/index.d.ts
Max Boguslavsky 0b97a539e8 Added @type/current-git-branch to repo (#38950)
* added @type/current-git-branch

* fixed version

* exported types and interface; updated tests

* added two spaces
2019-10-07 17:12:40 -07:00

21 lines
791 B
TypeScript

// Type definitions for current-git-branch 1.1
// Project: https://www.npmjs.com/package/current-git-branch
// Definitions by: Vladimir Grenaderov <https://github.com/VladimirGrenaderov>,
// Max Boguslavskiy <https://github.com/maxbogus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
declare namespace CurrentGitBranch {
type CurrentGitBranchOptions = CurrentGitBranchOptionsObject | string[] | string;
type CurrentGitBranchResult = string | boolean;
interface CurrentGitBranchOptionsObject {
altPath?: string;
branchOptions?: string;
}
}
declare function CurrentGitBranch(args?: CurrentGitBranch.CurrentGitBranchOptions): CurrentGitBranch.CurrentGitBranchResult;
export = CurrentGitBranch;