diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-05-13 22:03:04 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 08:03:04 -0400 |
commit | 3d7552af2e19f489501f6a1e27f8a4f488ce123a (patch) | |
tree | 079d7ea683b6916a7ed8ee9dac9261400d3bec5d | |
parent | bc7817e1610faf0abe3c8629fc8163fdcb36b75f (diff) |
Update to TypeScript 3.9 (#4510)
-rw-r--r-- | cli/js/net.ts | 2 | ||||
-rw-r--r-- | deno_typescript/lib.rs | 2 | ||||
m--------- | deno_typescript/typescript | 0 | ||||
-rw-r--r-- | std/fs/_util.ts | 11 | ||||
m--------- | third_party | 0 |
5 files changed, 7 insertions, 8 deletions
diff --git a/cli/js/net.ts b/cli/js/net.ts index 5094351b2..6ba93dd29 100644 --- a/cli/js/net.ts +++ b/cli/js/net.ts @@ -108,7 +108,7 @@ export class DatagramImpl implements DatagramConn { } async send(p: Uint8Array, addr: Addr): Promise<void> { - const remote = { hostname: "127.0.0.1", transport: "udp", ...addr }; + const remote = { hostname: "127.0.0.1", ...addr }; const args = { ...remote, rid: this.rid }; await netOps.send(args as netOps.SendRequest, p); diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs index d554022d8..ae09c3405 100644 --- a/deno_typescript/lib.rs +++ b/deno_typescript/lib.rs @@ -305,6 +305,8 @@ pub fn get_asset(name: &str) -> Option<&'static str> { "lib.esnext.asynciterable.d.ts" => inc!("lib.esnext.asynciterable.d.ts"), "lib.esnext.bigint.d.ts" => inc!("lib.esnext.bigint.d.ts"), "lib.esnext.intl.d.ts" => inc!("lib.esnext.intl.d.ts"), + "lib.esnext.promise.d.ts" => inc!("lib.esnext.promise.d.ts"), + "lib.esnext.string.d.ts" => inc!("lib.esnext.string.d.ts"), "lib.esnext.symbol.d.ts" => inc!("lib.esnext.symbol.d.ts"), "lib.scripthost.d.ts" => inc!("lib.scripthost.d.ts"), "lib.webworker.d.ts" => inc!("lib.webworker.d.ts"), diff --git a/deno_typescript/typescript b/deno_typescript/typescript -Subproject 712967b2780e8ecd28f8f1e2e89c1ebd2592bb4 +Subproject 551f0dd9a1b57ecd527a665b0af7fc98cd107af diff --git a/std/fs/_util.ts b/std/fs/_util.ts index 48a98a0b1..aecd9748b 100644 --- a/std/fs/_util.ts +++ b/std/fs/_util.ts @@ -17,13 +17,10 @@ export function isSubdir( const srcArray = src.split(sep); const destArray = dest.split(sep); // see: https://github.com/Microsoft/TypeScript/issues/30821 - return srcArray.reduce( - // @ts-ignore - (acc: true, current: string, i: number): boolean => { - return acc && destArray[i] === current; - }, - true - ); + // @ts-ignore + return srcArray.reduce((acc: true, current: string, i: number): boolean => { + return acc && destArray[i] === current; + }, true); } export type PathType = "file" | "dir" | "symlink"; diff --git a/third_party b/third_party -Subproject 4a3ade332261afb8fcb8b364e59d3cca7c975d3 +Subproject 9ad53352a9bc7cd179d9e06663a097352514d38 |