Browse Source

chore: update to latest TypeScript 3.5.2 (#19133)

Milan Burda 5 years ago
parent
commit
fdbb97e876
6 changed files with 251 additions and 126 deletions
  1. 0 1
      build/tsc.gni
  2. 0 1
      build/webpack/webpack.gni
  3. 3 1
      lib/renderer/api/remote.js
  4. 1 1
      package.json
  5. 0 1
      typings/internal-helpers.d.ts
  6. 247 121
      yarn.lock

+ 0 - 1
build/tsc.gni

@@ -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"

+ 0 - 1
build/webpack/webpack.gni

@@ -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 = [

+ 3 - 1
lib/renderer/api/remote.js

@@ -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) => {

+ 1 - 1
package.json

@@ -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"
   },

+ 0 - 1
typings/internal-helpers.d.ts

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

File diff suppressed because it is too large
+ 247 - 121
yarn.lock


Some files were not shown because too many files changed in this diff