diff options
author | Luca Bruno <lucab@lucabruno.net> | 2023-11-06 14:15:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 14:15:02 +0100 |
commit | 56a4c981f57570888ec159dd0da8c1ad936878a1 (patch) | |
tree | a6f8c198bd4b0702fbd1fee67187e3607a813f6f /ext/fetch/26_fetch.js | |
parent | 65a4b44b7568cfe1f436a9a7e37dc70cf731e1e2 (diff) |
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
Diffstat (limited to 'ext/fetch/26_fetch.js')
-rw-r--r-- | ext/fetch/26_fetch.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js index d77180e85..e586d9a3a 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( |