Fixed tests

This commit is contained in:
Dolan
2017-06-08 02:31:06 +01:00
parent 2dc0287a6b
commit 7097c37505
6 changed files with 9 additions and 9 deletions

View File

@@ -8,6 +8,6 @@ export class CloneOptions {
bare?: number;
local?: number;
checkoutBranch?: string;
repositoryCbPayload?: void;
remoteCbPayload?: void;
repositoryCbPayload?: any;
remoteCbPayload?: any;
}

View File

@@ -6,7 +6,7 @@ export interface DiffOptions {
ignoreSubmodules: number;
pathspec: Strarray;
notifyCb: Function;
notifyPayload: void;
notifyPayload: any;
contextLines: number;
interhunkLines: number;
idAbbrev: number;

View File

@@ -48,6 +48,6 @@ result = Git.Attr.value("attr");
const blameOptions = new Git.BlameOptions();
Git.Branch.lookup(repo, "branch_name", Git.Branch.BRANCH.LOCAL).then(function (reference) {
Git.Branch.lookup(repo, "branch_name", Git.Branch.BRANCH.LOCAL).then((reference) => {
// Use reference
});

View File

@@ -4,7 +4,7 @@ import {Oid} from './oid';
export class Note {
static create(repo: Repository, notes_ref: string, author: Signature, committer: Signature, oid: Oid, note: string, force: number): Promise<Oid>;
static foreach(repo: Repository, notes_ref: string, note_cb: Function, payload: void): Promise<number>;
static foreach(repo: Repository, notes_ref: string, note_cb: Function, payload: any): Promise<number>;
static iteratorNew(repo: Repository, notes_ref: string): Promise<any>;
static next(note_id: Oid, annotated_id: Oid, it: any): number;
static read(repo: Repository, notes_ref: string, oid: Oid): Promise<Note>;

View File

@@ -33,14 +33,14 @@ export interface StashApplyOptions {
flags: number;
checkoutOptions: CheckoutOptions;
progressCb: Function;
progressPayload: void;
progressPayload: any;
}
export class Stash {
static apply(repo: Repository, index: number, options: StashApplyOptions): Promise<number>;
static applyInitOptions(opts: StashApplyOptions, version: number): number;
static drop(repo: Repository, index: number): Promise<number>;
static foreach(repo: Repository, callback: Function, payload: void): Promise<number>;
static foreach(repo: Repository, callback: Function, payload: any): Promise<number>;
static pop(repo: Repository, index: number, options: StashApplyOptions): Promise<number>;
static save(repo: Repository, stasher: Signature, message: string, flags: number): Promise<Oid>;
}

View File

@@ -50,7 +50,7 @@ export namespace Status {
export class Status {
static byIndex(statuslist: StatusList, idx: number): StatusEntry;
static file(repo: Repository, path: string): number;
static foreach(repo: Repository, callback: Function, payload: void): Promise<number>;
static foreachExt(repo: Repository, opts: StatusOptions, callback: Function, payload: void): Promise<number>;
static foreach(repo: Repository, callback: Function, payload: any): Promise<number>;
static foreachExt(repo: Repository, opts: StatusOptions, callback: Function, payload: any): Promise<number>;
static shouldIgnore(ignored: number, repo: Repository, path: string): number;
}