diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-11-30 14:25:07 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-29 23:37:28 -0800 |
commit | 17994d45423fd5f10e1df347aa8e6962fd1e5bc2 (patch) | |
tree | 735cf75ed2e503c0dc89bf45256797977f7a5b6f | |
parent | cc126528f0a787da2e5c8910f0e8aa2df681a4dd (diff) |
Upgrade to TypeScript 3.2
-rw-r--r-- | js/assets.ts | 2 | ||||
-rw-r--r-- | js/timers.ts | 8 | ||||
-rw-r--r-- | package.json | 2 | ||||
m--------- | third_party | 0 |
4 files changed, 8 insertions, 4 deletions
diff --git a/js/assets.ts b/js/assets.ts index 7d6e6329d..2344cfc04 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 83f285f12..35744f672 100644 --- a/js/timers.ts +++ b/js/timers.ts @@ -167,7 +167,9 @@ function fireTimers() { setGlobalTimeout(nextTimerDue, now); } -function setTimer<Args extends Array<unknown>>( +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<Args extends Array<unknown>>( } /** Sets a timer which executes a function once after the timer expires. */ -export function setTimeout<Args extends Array<unknown>>( +export function setTimeout( cb: (...args: Args) => void, delay: number, ...args: Args @@ -207,7 +209,7 @@ export function setTimeout<Args extends Array<unknown>>( } /** Repeatedly calls a function , with a fixed time delay between each call. */ -export function setInterval<Args extends Array<unknown>>( +export function setInterval( cb: (...args: Args) => void, delay: number, ...args: Args diff --git a/package.json b/package.json index c96711416..ef21b5427 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 -Subproject 5206c3eec54e5a8eac93ba2d5b7f8eaa088d14a +Subproject 7590d01b95f0189713654a493acfb13ab51a14d |