fixed linting errors

This commit is contained in:
Dolan
2017-06-10 02:42:46 +01:00
parent 8f535fe731
commit 0aaac09a44
6 changed files with 14 additions and 26 deletions

View File

@@ -172,7 +172,7 @@ export class Diff {
* Directly run a diff between a blob and a buffer.
*
* @static
* @param {Blob} old_blob
* @param {Blob} oldBlob
* @param {string} oldAsPath
* @param {string} buffer
* @param {string} bufferAsPath
@@ -185,8 +185,8 @@ export class Diff {
*
* @memberof Diff
*/
static blobToBuffer(old_blob: Blob, oldAsPath: string,
buffer: string, bufferAsPath: string, opts: DiffOptions, fileCb: Function, binaryCb: Function, hunkCb: Function, lineCb: Function): Promise<any>;
static blobToBuffer(oldBlob: Blob, oldAsPath: string,
buffer: string, bufferAsPath: string, opts: DiffOptions, fileCb: Function, binaryCb: Function, hunkCb: Function, lineCb: Function): Promise<any>;
/**
*
*

View File

@@ -1,7 +1,7 @@
import { Oid } from './oid';
export class OdbExpandId {
id: Oid
length: number
type: number
id: Oid;
length: number;
type: number;
}

View File

@@ -5,40 +5,40 @@ export class ProxyOptions {
* @type {Function}
* @memberof ProxyOptions
*/
certificateCheck?: Function
certificateCheck?: Function;
/**
*
*
* @type {Function}
* @memberof ProxyOptions
*/
credentials?: Function
credentials?: Function;
/**
*
*
* @type {*}
* @memberof ProxyOptions
*/
payload?: any
payload?: any;
/**
*
*
* @type {number}
* @memberof ProxyOptions
*/
type?: number
type?: number;
/**
*
*
* @type {string}
* @memberof ProxyOptions
*/
url?: string
url?: string;
/**
*
*
* @type {number}
* @memberof ProxyOptions
*/
version?: number
version?: number;
}

View File

@@ -30,12 +30,12 @@ export interface PushOptions {
* @type {Strarray}
* @memberof PushOptions
*/
customHeaders: Strarray
customHeaders: Strarray;
/**
*
*
* @type {ProxyOptions}
* @memberof PushOptions
*/
proxyOpts: ProxyOptions
proxyOpts: ProxyOptions;
}

View File

@@ -187,5 +187,4 @@ export class Revwalk {
* @memberof Revwalk
*/
getCommits(count: number): Promise<Commit[]>;
}

View File

@@ -36,15 +36,6 @@ export class Tree {
* @memberof Tree
*/
static entryDup(dest: TreeEntry, source: TreeEntry): number;
/**
* Retrieves the tree pointed to by the oid
*
* @static
* @returns {Promise<Tree>}
*
* @memberof Tree
*/
static lookup(): Promise<Tree>;
/**
*
*
@@ -57,7 +48,6 @@ export class Tree {
* @memberof Tree
*/
static lookupPrefix(repo: Repository, id: Oid, len: number): Promise<Tree>;
/**
* Retrieves the tree pointed to by the oid
*
@@ -70,7 +60,6 @@ export class Tree {
* @memberof Tree
*/
static lookup(repo: Repository, id: string | Oid | Tree, callback: Function): Promise<Tree>;
static lookupPrefix(repo: Repository, id: Oid, len: number): Promise<Tree>;
/**
*