build: Update TypeScript, use @typescript-eslint (#17251)

* build: Update TypeScript to v3.3

* build: Update TypeScript, use @typescript-eslint
This commit is contained in:
Felix Rieseberg 2019-03-07 12:56:02 -08:00 committed by Samuel Attard
parent 8c4d6438de
commit 5581990d78
10 changed files with 104 additions and 92 deletions

View file

@ -102,7 +102,8 @@ const deprecate: ElectronInternal.DeprecationUtil = {
} as T
},
promisifyMultiArg: <T extends (...args: any[]) => any>(fn: T, convertPromiseValue: (v: any) => any): T => {
// convertPromiseValue: Temporarily disabled until it's used
promisifyMultiArg: <T extends (...args: any[]) => any>(fn: T /* convertPromiseValue: (v: any) => any */): T => {
const fnName = fn.name || 'function'
const oldName = `${fnName} with callbacks`
const newName = `${fnName} with Promises`