mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
Upgrade to TypeScript 3.2
This commit is contained in:
parent
cc126528f0
commit
17994d4542
4 changed files with 9 additions and 5 deletions
|
@ -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,
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5206c3eec54e5a8eac93ba2d5b7f8eaa088d14a2
|
||||
Subproject commit 7590d01b95f0189713654a493acfb13ab51a14d8
|
Loading…
Add table
Reference in a new issue