mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
More types
This commit is contained in:
13
types/nodegit/annotated-commit.d.ts
vendored
Normal file
13
types/nodegit/annotated-commit.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user