mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Fixed tests
This commit is contained in:
4
types/nodegit/clone-options.d.ts
vendored
4
types/nodegit/clone-options.d.ts
vendored
@@ -8,6 +8,6 @@ export class CloneOptions {
|
||||
bare?: number;
|
||||
local?: number;
|
||||
checkoutBranch?: string;
|
||||
repositoryCbPayload?: void;
|
||||
remoteCbPayload?: void;
|
||||
repositoryCbPayload?: any;
|
||||
remoteCbPayload?: any;
|
||||
}
|
||||
|
||||
2
types/nodegit/diff-options.d.ts
vendored
2
types/nodegit/diff-options.d.ts
vendored
@@ -6,7 +6,7 @@ export interface DiffOptions {
|
||||
ignoreSubmodules: number;
|
||||
pathspec: Strarray;
|
||||
notifyCb: Function;
|
||||
notifyPayload: void;
|
||||
notifyPayload: any;
|
||||
contextLines: number;
|
||||
interhunkLines: number;
|
||||
idAbbrev: number;
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
2
types/nodegit/note.d.ts
vendored
2
types/nodegit/note.d.ts
vendored
@@ -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>;
|
||||
|
||||
4
types/nodegit/stash.d.ts
vendored
4
types/nodegit/stash.d.ts
vendored
@@ -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>;
|
||||
}
|
||||
|
||||
4
types/nodegit/status.d.ts
vendored
4
types/nodegit/status.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user