From d12dcf598597ac1208d354b0941bd820ed8686a8 Mon Sep 17 00:00:00 2001 From: "James C. Davis" Date: Fri, 18 Oct 2019 09:06:24 -0400 Subject: [PATCH] fix(types): add commitsSinceLastTag to typedefs --- index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.d.ts b/index.d.ts index c121a86..aaea143 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 */