Skip to content

Commit d12dcf5

Browse files
committed
fix(types): add commitsSinceLastTag to typedefs
1 parent 416f981 commit d12dcf5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ declare namespace gitRepoInfo {
1212
tag: string | null;
1313
/** Tag for the closest tagged ancestor (or `null` if no ancestor is tagged) */
1414
lastTag: string | null;
15+
/**
16+
* Number of commits since the closest tagged ancestor.
17+
* `0` if this commit is tagged, or `Infinity` if no ancestor is tagged.
18+
*/
19+
commitsSinceLastTag: number;
1520
/** The committer of the current SHA */
1621
committer: string;
1722
/** The commit date of the current SHA */

0 commit comments

Comments
 (0)