Update to TypeScript 3.9 (#4510)

This commit is contained in:
Kitson Kelly 2020-05-13 22:03:04 +10:00 committed by GitHub
parent bc7817e161
commit 3d7552af2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 10 deletions

View File

@ -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);

View File

@ -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"),

@ -1 +1 @@
Subproject commit 712967b2780e8ecd28f8f1e2e89c1ebd2592bb4c
Subproject commit 551f0dd9a1b57ecd527a665b0af7fc98cd107af6

View File

@ -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";

@ -1 +1 @@
Subproject commit 4a3ade332261afb8fcb8b364e59d3cca7c975d36
Subproject commit 9ad53352a9bc7cd179d9e06663a097352514d389