From 17994d45423fd5f10e1df347aa8e6962fd1e5bc2 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 30 Nov 2018 14:25:07 +1100 Subject: [PATCH] Upgrade to TypeScript 3.2 --- js/assets.ts | 2 ++ js/timers.ts | 8 +++++--- package.json | 2 +- third_party | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/js/assets.ts b/js/assets.ts index 7d6e6329d3..2344cfc040 100644 --- a/js/assets.ts +++ b/js/assets.ts @@ -35,6 +35,7 @@ import libEs2018RegexpDts from "/third_party/node_modules/typescript/lib/lib.es2 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"; +import libEsnextBigintDts from "/third_party/node_modules/typescript/lib/lib.esnext.bigint.d.ts!string"; import libEsnextDts from "/third_party/node_modules/typescript/lib/lib.esnext.d.ts!string"; import libEsnextIntlDts from "/third_party/node_modules/typescript/lib/lib.esnext.intl.d.ts!string"; import libEsnextSymbolDts from "/third_party/node_modules/typescript/lib/lib.esnext.symbol.d.ts!string"; @@ -75,6 +76,7 @@ export const assetSourceCode: { [key: string]: string } = { "lib.esnext.d.ts": libEsnextDts, "lib.esnext.array.d.ts": libEsnextArrayDts, "lib.esnext.asynciterable.d.ts": libEsnextAsynciterablesDts, + "lib.esnext.bigint.d.ts": libEsnextBigintDts, "lib.esnext.intl.d.ts": libEsnextIntlDts, "lib.esnext.symbol.d.ts": libEsnextSymbolDts, diff --git a/js/timers.ts b/js/timers.ts index 83f285f12d..35744f6720 100644 --- a/js/timers.ts +++ b/js/timers.ts @@ -167,7 +167,9 @@ function fireTimers() { setGlobalTimeout(nextTimerDue, now); } -function setTimer>( +export type Args = any[]; // tslint:disable-line:no-any + +function setTimer( cb: (...args: Args) => void, delay: number, args: Args, @@ -198,7 +200,7 @@ function setTimer>( } /** Sets a timer which executes a function once after the timer expires. */ -export function setTimeout>( +export function setTimeout( cb: (...args: Args) => void, delay: number, ...args: Args @@ -207,7 +209,7 @@ export function setTimeout>( } /** Repeatedly calls a function , with a fixed time delay between each call. */ -export function setInterval>( +export function setInterval( cb: (...args: Args) => void, delay: number, ...args: Args diff --git a/package.json b/package.json index c96711416e..ef21b5427d 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,6 @@ "tslint": "^5.10.0", "tslint-eslint-rules": "^5.3.1", "tslint-no-circular-imports": "^0.5.0", - "typescript": "3.1.6" + "typescript": "3.2.1" } } diff --git a/third_party b/third_party index 5206c3eec5..7590d01b95 160000 --- a/third_party +++ b/third_party @@ -1 +1 @@ -Subproject commit 5206c3eec54e5a8eac93ba2d5b7f8eaa088d14a2 +Subproject commit 7590d01b95f0189713654a493acfb13ab51a14d8