chore: update to latest TypeScript 3.5.2 (#19133)
This commit is contained in:
parent
b32bee5d84
commit
fdbb97e876
6 changed files with 1545 additions and 656 deletions
|
@ -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"
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
1
typings/internal-helpers.d.ts
vendored
1
typings/internal-helpers.d.ts
vendored
|
@ -1 +0,0 @@
|
|||
declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
|
Loading…
Reference in a new issue