We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d5e9a commit ce2173bCopy full SHA for ce2173b
1 file changed
types/fetch.d.ts
@@ -136,7 +136,7 @@ declare global {
136
formData(): Promise<FormData>;
137
138
/** Reads the body as JSON. */
139
- json(): Promise<unknown>;
+ json<T = unknown>(): Promise<T>;
140
141
/** Reads the body as text. */
142
text(): Promise<string>;
@@ -227,7 +227,7 @@ declare global {
227
228
229
230
231
232
233
0 commit comments