From 56a4c981f57570888ec159dd0da8c1ad936878a1 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Mon, 6 Nov 2023 14:15:02 +0100 Subject: [PATCH] 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: https://github.com/denoland/deno/blob/fdb4953ea460d5c09ac73f3f37dd570d44893155/ext/fetch/lib.rs#L183-L189 --- ext/fetch/26_fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js index d77180e856..e586d9a3a2 100644 --- a/ext/fetch/26_fetch.js +++ b/ext/fetch/26_fetch.js @@ -67,7 +67,7 @@ const requestBodyReaders = new SafeWeakMap(); /** * @param {{ method: string, url: string, headers: [string, string][], clientRid: number | null, hasBody: boolean }} args * @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) { return ops.op_fetch(