diff --git a/types/nodegit/clone-options.d.ts b/types/nodegit/clone-options.d.ts index b8acc9aad0..8535b28c81 100644 --- a/types/nodegit/clone-options.d.ts +++ b/types/nodegit/clone-options.d.ts @@ -8,6 +8,6 @@ export class CloneOptions { bare?: number; local?: number; checkoutBranch?: string; - repositoryCbPayload?: void; - remoteCbPayload?: void; + repositoryCbPayload?: any; + remoteCbPayload?: any; } diff --git a/types/nodegit/diff-options.d.ts b/types/nodegit/diff-options.d.ts index e78de28aac..32dec9943f 100644 --- a/types/nodegit/diff-options.d.ts +++ b/types/nodegit/diff-options.d.ts @@ -6,7 +6,7 @@ export interface DiffOptions { ignoreSubmodules: number; pathspec: Strarray; notifyCb: Function; - notifyPayload: void; + notifyPayload: any; contextLines: number; interhunkLines: number; idAbbrev: number; diff --git a/types/nodegit/nodegit-tests.ts b/types/nodegit/nodegit-tests.ts index c8d296ea09..c10dfef127 100644 --- a/types/nodegit/nodegit-tests.ts +++ b/types/nodegit/nodegit-tests.ts @@ -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 }); diff --git a/types/nodegit/note.d.ts b/types/nodegit/note.d.ts index 2ea74b9df8..c5c9152bb2 100644 --- a/types/nodegit/note.d.ts +++ b/types/nodegit/note.d.ts @@ -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; - static foreach(repo: Repository, notes_ref: string, note_cb: Function, payload: void): Promise; + static foreach(repo: Repository, notes_ref: string, note_cb: Function, payload: any): Promise; static iteratorNew(repo: Repository, notes_ref: string): Promise; static next(note_id: Oid, annotated_id: Oid, it: any): number; static read(repo: Repository, notes_ref: string, oid: Oid): Promise; diff --git a/types/nodegit/stash.d.ts b/types/nodegit/stash.d.ts index 39a6893140..c81e94b7b6 100644 --- a/types/nodegit/stash.d.ts +++ b/types/nodegit/stash.d.ts @@ -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; static applyInitOptions(opts: StashApplyOptions, version: number): number; static drop(repo: Repository, index: number): Promise; - static foreach(repo: Repository, callback: Function, payload: void): Promise; + static foreach(repo: Repository, callback: Function, payload: any): Promise; static pop(repo: Repository, index: number, options: StashApplyOptions): Promise; static save(repo: Repository, stasher: Signature, message: string, flags: number): Promise; } diff --git a/types/nodegit/status.d.ts b/types/nodegit/status.d.ts index 49ad0fd142..1059dd6bff 100644 --- a/types/nodegit/status.d.ts +++ b/types/nodegit/status.d.ts @@ -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; - static foreachExt(repo: Repository, opts: StatusOptions, callback: Function, payload: void): Promise; + static foreach(repo: Repository, callback: Function, payload: any): Promise; + static foreachExt(repo: Repository, opts: StatusOptions, callback: Function, payload: any): Promise; static shouldIgnore(ignored: number, repo: Repository, path: string): number; }