More types

This commit is contained in:
Dolan
2017-06-04 00:45:48 +01:00
parent 082710a32c
commit cdf69c51e9
25 changed files with 658 additions and 19 deletions

13
types/nodegit/annotated-commit.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
import { Repository } from './repository';
import { Oid } from './oid';
import { Reference } from './reference';
export class AnnotatedCommit {
static fromFetchhead(repo: Repository, branch_name: string, remote_url: string, id: Oid): Promise<AnnotatedCommit>;
static fromRef(repo: Repository, ref: Reference): Promise<AnnotatedCommit>;
static fromRevspec(repo: Repository, revspec: string): Promise<AnnotatedCommit>;
static lookup(repo: Repository, id: Oid): Promise<AnnotatedCommit>;
free(): void;
id(): Oid;
}