1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -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:
Luca Bruno 2023-11-06 14:15:02 +01:00 committed by GitHub
parent 65a4b44b75
commit 56a4c981f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(