mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Fixed some errors
This commit is contained in:
2
types/nodegit/blame-hunk.d.ts
vendored
2
types/nodegit/blame-hunk.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
import { Oid } from './oid';
|
||||
import { Signature } from './Signature';
|
||||
import { Signature } from './signature';
|
||||
|
||||
export class BlameHunk {
|
||||
linesInHunk: number;
|
||||
|
||||
1
types/nodegit/cherry-pick.d.ts
vendored
1
types/nodegit/cherry-pick.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
import { Repository } from './repository';
|
||||
import { Commit } from './commit';
|
||||
import { MergeOptions } from './merge-options';
|
||||
import { CherrypickOptions } from './cherry-pick-options';
|
||||
|
||||
export class Cherrypick {
|
||||
static cherrypick(repo: Repository, commit: Commit, options?: CherrypickOptions): Promise<number>;
|
||||
|
||||
2
types/nodegit/diff.d.ts
vendored
2
types/nodegit/diff.d.ts
vendored
@@ -126,7 +126,7 @@ export namespace Diff {
|
||||
|
||||
export class Diff {
|
||||
static blobToBuffer(old_blob: Blob, oldAsPath: string,
|
||||
buffer: string, bufferAsPath: string, opts: DiffOptions, fileCb: Function, binaryCb: Function, hunkCb: Function, lineCb: Function): Promise<any>;
|
||||
buffer: string, bufferAsPath: string, opts: DiffOptions, fileCb: Function, binaryCb: Function, hunkCb: Function, lineCb: Function): Promise<any>;
|
||||
static indexToWorkdir(repo: Repository, index: Index, opts: DiffOptions): Promise<Diff>;
|
||||
static treeToIndex(repo: Repository, old_tree: Tree, index: Index, opts: DiffOptions): Promise<Diff>;
|
||||
static treeToTree(repo: Repository, old_tree: Tree, new_tree: Tree, opts: DiffOptions): Promise<Diff>;
|
||||
|
||||
8
types/nodegit/filter.d.ts
vendored
8
types/nodegit/filter.d.ts
vendored
@@ -1,3 +1,5 @@
|
||||
import { WriteStream } from 'fs';
|
||||
|
||||
import { Repository } from './repository';
|
||||
import { Blob } from './blob';
|
||||
import { Buf } from './buf';
|
||||
@@ -20,9 +22,9 @@ export class Filter {
|
||||
static listContains(filters: any, name: string): number;
|
||||
static listLength(fl: any): number;
|
||||
static listNew(repo: Repository, mode: number, options: number): Promise<any>;
|
||||
static listStreamBlob(filters: any, blob: Blob, target: Writestream): number;
|
||||
static listStreamData(filters: any, data: Buf, target: Writestream): number;
|
||||
static listStreamFile(filters: any, repo: Repository, path: string, target: Writestream): number;
|
||||
static listStreamBlob(filters: any, blob: Blob, target: WriteStream): number;
|
||||
static listStreamData(filters: any, data: Buf, target: WriteStream): number;
|
||||
static listStreamFile(filters: any, repo: Repository, path: string, target: WriteStream): number;
|
||||
static unregister(name: string): number;
|
||||
|
||||
lookup(name: string): Filter;
|
||||
|
||||
Reference in New Issue
Block a user