summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-04-02 03:47:25 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-04-01 12:47:25 -0400
commitada5ffa610d2b5400b612917b35d91b98bee2309 (patch)
tree423ba7874b39ffd8f809468d3d81311ecebef089 /js
parentc855d0edd2ef5098b806ac6368eb7b0a85d0d0c9 (diff)
Upgrade to TypeScript 3.4.1 (#2027)
Diffstat (limited to 'js')
-rw-r--r--js/assets.ts10
-rw-r--r--js/globals_test.ts1
2 files changed, 11 insertions, 0 deletions
diff --git a/js/assets.ts b/js/assets.ts
index 6e576c2d1..436906783 100644
--- a/js/assets.ts
+++ b/js/assets.ts
@@ -28,9 +28,14 @@ import libEs2017SharedmemoryDts from "/third_party/node_modules/typescript/lib/l
import libEs2017StringDts from "/third_party/node_modules/typescript/lib/lib.es2017.string.d.ts!string";
import libEs2017TypedarraysDts from "/third_party/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts!string";
import libEs2018Dts from "/third_party/node_modules/typescript/lib/lib.es2018.d.ts!string";
+import libEs2018AsyncIterableDts from "/third_party/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts!string";
import libEs2018IntlDts from "/third_party/node_modules/typescript/lib/lib.es2018.intl.d.ts!string";
import libEs2018PromiseDts from "/third_party/node_modules/typescript/lib/lib.es2018.promise.d.ts!string";
import libEs2018RegexpDts from "/third_party/node_modules/typescript/lib/lib.es2018.regexp.d.ts!string";
+import libEs2019Dts from "/third_party/node_modules/typescript/lib/lib.es2019.d.ts!string";
+import libEs2019ArrayDts from "/third_party/node_modules/typescript/lib/lib.es2019.array.d.ts!string";
+import libEs2019StringDts from "/third_party/node_modules/typescript/lib/lib.es2019.string.d.ts!string";
+import libEs2019SymbolDts from "/third_party/node_modules/typescript/lib/lib.es2019.symbol.d.ts!string";
import libEs5Dts from "/third_party/node_modules/typescript/lib/lib.es5.d.ts!string";
import libEsnextArrayDts from "/third_party/node_modules/typescript/lib/lib.esnext.array.d.ts!string";
import libEsnextAsynciterablesDts from "/third_party/node_modules/typescript/lib/lib.esnext.asynciterable.d.ts!string";
@@ -64,9 +69,14 @@ export const assetSourceCode: { [key: string]: string } = {
"lib.es2017.string.d.ts": libEs2017StringDts,
"lib.es2017.typedarrays.d.ts": libEs2017TypedarraysDts,
"lib.es2018.d.ts": libEs2018Dts,
+ "lib.es2018.asynciterable.d.ts": libEs2018AsyncIterableDts,
"lib.es2018.intl.d.ts": libEs2018IntlDts,
"lib.es2018.promise.d.ts": libEs2018PromiseDts,
"lib.es2018.regexp.d.ts": libEs2018RegexpDts,
+ "lib.es2019.d.ts": libEs2019Dts,
+ "lib.es2019.array.d.ts": libEs2019ArrayDts,
+ "lib.es2019.string.d.ts": libEs2019StringDts,
+ "lib.es2019.symbol.d.ts": libEs2019SymbolDts,
"lib.es5.d.ts": libEs5Dts,
"lib.esnext.d.ts": libEsnextDts,
"lib.esnext.array.d.ts": libEsnextArrayDts,
diff --git a/js/globals_test.ts b/js/globals_test.ts
index 64a5c37ab..60b560134 100644
--- a/js/globals_test.ts
+++ b/js/globals_test.ts
@@ -14,6 +14,7 @@ test(function windowWindowExists() {
});
test(function globalThisEqualsWindow() {
+ // @ts-ignore (TypeScript thinks globalThis and window don't match)
assert(globalThis === window);
});