mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* added @type/current-git-branch * fixed version * exported types and interface; updated tests * added two spaces
21 lines
791 B
TypeScript
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;
|