We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e120b80 commit 5e52964Copy full SHA for 5e52964
packages/fetch/src/response.js
@@ -127,9 +127,10 @@ export default class Response extends Body {
127
}
128
129
/**
130
- * @param {any} data The URL that the new response is to originate from.
+ * @template {unknown} Data
131
+ * @param {Data} data The URL that the new response is to originate from.
132
* @param {ResponseInit} [responseInit] An optional status code for the response (e.g., 302.)
- * @returns {Response} A Response object.
133
+ * @returns {Promise<Data>} A Response object.
134
*/
135
static json(data, responseInit = {}) {
136
let headers = new Headers(responseInit.headers);
0 commit comments