mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
fix: Better use of @ts-expect-error (#6038)
This commit is contained in:
parent
8b1b4766a1
commit
3fe6bc1b82
24 changed files with 152 additions and 145 deletions
|
@ -187,7 +187,7 @@ function sendFetchReq(
|
|||
}
|
||||
|
||||
export async function fetch(
|
||||
input: domTypes.Request | URL | string,
|
||||
input: (domTypes.Request & { _bodySource?: unknown }) | URL | string,
|
||||
init?: domTypes.RequestInit
|
||||
): Promise<Response> {
|
||||
let url: string;
|
||||
|
@ -285,7 +285,6 @@ export async function fetch(
|
|||
method = input.method;
|
||||
headers = input.headers;
|
||||
|
||||
//@ts-expect-error
|
||||
if (input._bodySource) {
|
||||
body = new DataView(await input.arrayBuffer());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue