From 0aaac09a4471f1906b4c341cb7d5cfe38b5cfce5 Mon Sep 17 00:00:00 2001 From: Dolan Date: Sat, 10 Jun 2017 02:42:46 +0100 Subject: [PATCH] fixed linting errors --- types/nodegit/diff.d.ts | 6 +++--- types/nodegit/odb-expand-id.d.ts | 6 +++--- types/nodegit/proxy-options.d.ts | 12 ++++++------ types/nodegit/push-options.d.ts | 4 ++-- types/nodegit/rev-walk.d.ts | 1 - types/nodegit/tree.d.ts | 11 ----------- 6 files changed, 14 insertions(+), 26 deletions(-) diff --git a/types/nodegit/diff.d.ts b/types/nodegit/diff.d.ts index 23d3ddf5fc..0150313cfb 100644 --- a/types/nodegit/diff.d.ts +++ b/types/nodegit/diff.d.ts @@ -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; + static blobToBuffer(oldBlob: Blob, oldAsPath: string, + buffer: string, bufferAsPath: string, opts: DiffOptions, fileCb: Function, binaryCb: Function, hunkCb: Function, lineCb: Function): Promise; /** * * diff --git a/types/nodegit/odb-expand-id.d.ts b/types/nodegit/odb-expand-id.d.ts index 842c65774e..d4fe264c3a 100644 --- a/types/nodegit/odb-expand-id.d.ts +++ b/types/nodegit/odb-expand-id.d.ts @@ -1,7 +1,7 @@ import { Oid } from './oid'; export class OdbExpandId { - id: Oid - length: number - type: number + id: Oid; + length: number; + type: number; } diff --git a/types/nodegit/proxy-options.d.ts b/types/nodegit/proxy-options.d.ts index 512d70c99a..600b34cd04 100644 --- a/types/nodegit/proxy-options.d.ts +++ b/types/nodegit/proxy-options.d.ts @@ -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; } diff --git a/types/nodegit/push-options.d.ts b/types/nodegit/push-options.d.ts index 6cf501c84a..e9cc6e2dcb 100644 --- a/types/nodegit/push-options.d.ts +++ b/types/nodegit/push-options.d.ts @@ -30,12 +30,12 @@ export interface PushOptions { * @type {Strarray} * @memberof PushOptions */ - customHeaders: Strarray + customHeaders: Strarray; /** * * * @type {ProxyOptions} * @memberof PushOptions */ - proxyOpts: ProxyOptions + proxyOpts: ProxyOptions; } diff --git a/types/nodegit/rev-walk.d.ts b/types/nodegit/rev-walk.d.ts index 8ba18bf83a..82b322cd79 100644 --- a/types/nodegit/rev-walk.d.ts +++ b/types/nodegit/rev-walk.d.ts @@ -187,5 +187,4 @@ export class Revwalk { * @memberof Revwalk */ getCommits(count: number): Promise; - } diff --git a/types/nodegit/tree.d.ts b/types/nodegit/tree.d.ts index d6fca995de..057d3b2907 100644 --- a/types/nodegit/tree.d.ts +++ b/types/nodegit/tree.d.ts @@ -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} - * - * @memberof Tree - */ - static lookup(): Promise; /** * * @@ -57,7 +48,6 @@ export class Tree { * @memberof Tree */ static lookupPrefix(repo: Repository, id: Oid, len: number): Promise; - /** * 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; - static lookupPrefix(repo: Repository, id: Oid, len: number): Promise; /** *