mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
fix(ext/fetch): re-align return type in op_fetch docstring (#21098)
This adds a missing `cancelHandleRid` field in `op_fetch` return type,
see Rust side:
fdb4953ea4/ext/fetch/lib.rs (L183-L189)
This commit is contained in:
parent
65a4b44b75
commit
56a4c981f5
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ const requestBodyReaders = new SafeWeakMap();
|
||||||
/**
|
/**
|
||||||
* @param {{ method: string, url: string, headers: [string, string][], clientRid: number | null, hasBody: boolean }} args
|
* @param {{ method: string, url: string, headers: [string, string][], clientRid: number | null, hasBody: boolean }} args
|
||||||
* @param {Uint8Array | null} body
|
* @param {Uint8Array | null} body
|
||||||
* @returns {{ requestRid: number, requestBodyRid: number | null }}
|
* @returns {{ requestRid: number, requestBodyRid: number | null, cancelHandleRid: number | null }}
|
||||||
*/
|
*/
|
||||||
function opFetch(method, url, headers, clientRid, hasBody, bodyLength, body) {
|
function opFetch(method, url, headers, clientRid, hasBody, bodyLength, body) {
|
||||||
return ops.op_fetch(
|
return ops.op_fetch(
|
||||||
|
|
Loading…
Reference in a new issue