mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Improve typings.
This commit is contained in:
8
types/nodegit/commit.d.ts
vendored
8
types/nodegit/commit.d.ts
vendored
@@ -85,25 +85,25 @@ export class Commit {
|
||||
*
|
||||
*
|
||||
*/
|
||||
getParents(limit: number, callback: Function): Promise<Commit[]>;
|
||||
getParents(limit: number, callback?: Function): Promise<Commit[]>;
|
||||
/**
|
||||
* Retrieve the commit's parent shas.
|
||||
*
|
||||
*
|
||||
*/
|
||||
parents(callback: Function): Oid[];
|
||||
parents(): Oid[];
|
||||
/**
|
||||
* Generate an array of diff trees showing changes between this commit and its parent(s).
|
||||
*
|
||||
*
|
||||
*/
|
||||
getDiff(callback: Function): Promise<Diff[]>;
|
||||
getDiff(callback?: Function): Promise<Diff[]>;
|
||||
/**
|
||||
* Generate an array of diff trees showing changes between this commit and its parent(s).
|
||||
*
|
||||
*
|
||||
*/
|
||||
getDiffWithOptions(options: Object, callback: Function): Promise<Diff[]>;
|
||||
getDiffWithOptions(options: Object, callback?: Function): Promise<Diff[]>;
|
||||
/**
|
||||
* The sha of this commit
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user