UNPKG
gitversionjs
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
Auto-generates SemVer versions from Git tags and branches, GitFlow-style.
gitversionjs
/
dist
/
git.d.ts
8 lines
(7 loc)
•
235 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
GitVersionConfig
}
from
"./config.js"
;
export
interface
GitInfo
{
currentBranch
:
string
;
tags
:
string
[];
branchType
:
string
|
null
; }
export
declare
function
getGitInfo
(
config
:
GitVersionConfig
):
Promise
<
GitInfo
>;