From b40637f80b768ae5bcb0f3c99c99af872a542830 Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Sat, 26 May 2018 00:48:46 +0300 Subject: [PATCH 1/2] nodegit: fixed Signature instance variable types See https://github.com/nodegit/nodegit.github.com/issues/52 --- types/nodegit/signature.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/nodegit/signature.d.ts b/types/nodegit/signature.d.ts index 3e62110d0c..93e76fd64f 100644 --- a/types/nodegit/signature.d.ts +++ b/types/nodegit/signature.d.ts @@ -11,7 +11,7 @@ export class Signature { free(): void; toString(): string; - name: string; - email: string; - when: Time; + name(): string; + email(): string; + when(): Time; } From 76f8fd660d69f8a72ee7dcab83fd0f15ebe4d76c Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Sat, 26 May 2018 01:20:51 +0300 Subject: [PATCH 2/2] nodegit: added test code for Signature --- types/nodegit/nodegit-tests.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/nodegit/nodegit-tests.ts b/types/nodegit/nodegit-tests.ts index 465b5415b7..00d988d77f 100644 --- a/types/nodegit/nodegit-tests.ts +++ b/types/nodegit/nodegit-tests.ts @@ -51,3 +51,8 @@ const blameOptions = new Git.BlameOptions(); Git.Branch.lookup(repo, "branch_name", Git.Branch.BRANCH.LOCAL).then((reference) => { // Use reference }); + +const signature = Git.Signature.now("name", "email"); +signature.name(); +signature.email(); +signature.when();