@types/current-git-branch
Version:
TypeScript definitions for current-git-branch
16 lines (12 loc) • 471 B
TypeScript
declare namespace CurrentGitBranch {
type CurrentGitBranchOptions = CurrentGitBranchOptionsObject | string[] | string;
type CurrentGitBranchResult = string | false;
interface CurrentGitBranchOptionsObject {
altPath?: string | undefined;
branchOptions?: string | undefined;
}
}
declare function CurrentGitBranch(
args?: CurrentGitBranch.CurrentGitBranchOptions,
): CurrentGitBranch.CurrentGitBranchResult;
export = CurrentGitBranch;