chore: update to latest TypeScript 3.5.2 ()

This commit is contained in:
Milan Burda 2019-07-09 13:44:46 +02:00 committed by Alexey Kuzmin
parent b32bee5d84
commit fdbb97e876
6 changed files with 1545 additions and 656 deletions

View file

@ -24,7 +24,6 @@ template("typescript_build") {
"//electron/yarn.lock",
"//electron/typings/internal-ambient.d.ts",
"//electron/typings/internal-electron.d.ts",
"//electron/typings/internal-helpers.d.ts",
]
type_roots = "node_modules/@types,typings"

View file

@ -20,7 +20,6 @@ template("webpack_build") {
"//electron/yarn.lock",
"//electron/typings/internal-ambient.d.ts",
"//electron/typings/internal-electron.d.ts",
"//electron/typings/internal-helpers.d.ts",
] + invoker.inputs
args = [

View file

@ -325,7 +325,9 @@ exports.getGlobal = (name) => {
}
// Get the process object in browser.
exports.__defineGetter__('process', () => exports.getGlobal('process'))
Object.defineProperty(exports, 'process', {
get: () => exports.getGlobal('process')
})
// Create a function that will return the specified value when called in browser.
exports.createFunctionWithReturnValue = (returnValue) => {

View file

@ -52,7 +52,7 @@
"timers-browserify": "1.4.2",
"ts-loader": "^6.0.2",
"ts-node": "^6.0.3",
"typescript": "~3.3.3333",
"typescript": "^3.5.2",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2"
},

View file

@ -1 +0,0 @@
declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;

2192
yarn.lock

File diff suppressed because it is too large Load diff