Skip to content

Commit

Permalink
fix(types): add commitsSinceLastTag to typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescdavis committed Oct 18, 2019
1 parent 416f981 commit d12dcf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ declare namespace gitRepoInfo {
tag: string | null;
/** Tag for the closest tagged ancestor (or `null` if no ancestor is tagged) */
lastTag: string | null;
/**
* Number of commits since the closest tagged ancestor.
* `0` if this commit is tagged, or `Infinity` if no ancestor is tagged.
*/
commitsSinceLastTag: number;
/** The committer of the current SHA */
committer: string;
/** The commit date of the current SHA */
Expand Down

0 comments on commit d12dcf5

Please sign in to comment.