Skip to content

Commit 61f9fd3

Browse files
authored
chore(cli,http): fix typechecking errors (#6521)
1 parent 298fcac commit 61f9fd3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cli/_tools/compare_with_rust.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ Deno.test("fast-check equality with unicode_width Rust crate", async (t) => {
4949
// deno-lint-ignore no-explicit-any
5050
(str: any) =>
5151
unicodeWidth(str) ===
52-
dylib.symbols.unicode_width(toCString(JSON.stringify(str))),
52+
Number(
53+
dylib.symbols.unicode_width(toCString(JSON.stringify(str))),
54+
),
5355
),
5456
);
5557
},

http/_mock_conn.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export function mockConn(base: Partial<Deno.Conn> = {}): Deno.Conn {
1313
hostname: "",
1414
port: 0,
1515
},
16-
rid: -1,
1716
closeWrite: () => {
1817
return Promise.resolve();
1918
},
@@ -24,7 +23,7 @@ export function mockConn(base: Partial<Deno.Conn> = {}): Deno.Conn {
2423
return Promise.resolve(-1);
2524
},
2625
close: () => {},
27-
readable: new ReadableStream({
26+
readable: new ReadableStream<Uint8Array<ArrayBuffer>>({
2827
type: "bytes",
2928
async pull(_controller) {
3029
},

0 commit comments

Comments
 (0)