Skip to content

Commit b3b0e2a

Browse files
fix: make FetchResponse type compatible with a native Response object
1 parent 84a5acc commit b3b0e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/fetch-error-handler/lib/create-handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { Writable } = require('node:stream');
1212
*/
1313

1414
/**
15-
* @typedef {object} FetchResponseBody
15+
* @typedef {object} NodeFetchResponseBody
1616
* @property {(stream: Writable) => void} [pipe]
1717
* A function to pipe a response body stream.
1818
*/
@@ -25,7 +25,7 @@ const { Writable } = require('node:stream');
2525
* The response HTTP status code.
2626
* @property {string} url
2727
* The URL of the response.
28-
* @property {FetchResponseBody} body
28+
* @property {NodeFetchResponseBody | ReadableStream<Uint8Array> | null} body
2929
* A representation of the response body.
3030
*/
3131

0 commit comments

Comments
 (0)