mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
Update to TypeScript 3.9 (#4510)
This commit is contained in:
parent
bc7817e161
commit
3d7552af2e
@ -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);
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user