mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #26046 from mjomble/patch-1
nodegit: fixed Signature instance variable types
This commit is contained in:
@@ -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();
|
||||
|
||||
6
types/nodegit/signature.d.ts
vendored
6
types/nodegit/signature.d.ts
vendored
@@ -11,7 +11,7 @@ export class Signature {
|
||||
|
||||
free(): void;
|
||||
toString(): string;
|
||||
name: string;
|
||||
email: string;
|
||||
when: Time;
|
||||
name(): string;
|
||||
email(): string;
|
||||
when(): Time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user