Skip to content

Commit

Permalink
fix(types): add commitsSinceLastTag to typedefs (#45)
Browse files Browse the repository at this point in the history
fix(types): add commitsSinceLastTag to typedefs
  • Loading branch information
rwjblue authored Oct 18, 2019
2 parents 416f981 + d12dcf5 commit c8346fc
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 c8346fc

Please sign in to comment.