mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
Improve typings.
This commit is contained in:
11
types/nodegit/revert.d.ts
vendored
11
types/nodegit/revert.d.ts
vendored
@@ -5,10 +5,11 @@ import { Commit } from './commit';
|
||||
import { Index } from './index';
|
||||
|
||||
export interface RevertOptions {
|
||||
version: number;
|
||||
mainline: number;
|
||||
mergeOpts: MergeOptions;
|
||||
checkoutOpts: CheckoutOptions;
|
||||
version?: number;
|
||||
mainline?: number;
|
||||
mergeOpts?: MergeOptions;
|
||||
checkoutOpts?: CheckoutOptions;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export class Revert {
|
||||
@@ -16,5 +17,5 @@ export class Revert {
|
||||
/**
|
||||
* Reverts the given commit against the given "our" commit, producing an index that reflects the result of the revert.
|
||||
*/
|
||||
static commit(repo: Repository, revertCommit: Commit, ourCommit: Commit, mainline: number, mergeOptions: MergeOptions): Promise<Index>;
|
||||
static commit(repo: Repository, revertCommit: Commit, ourCommit: Commit, mainline: number, mergeOptions?: MergeOptions): Promise<Index>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user