Skip to content

Commit 9f9214a

Browse files
Update whatwg-fetch.d.ts
The json method when invoked, must return the result of running consume body with JSON. This implies that it must have the same return value as JSON.parse, which is any.
1 parent cee9cac commit 9f9214a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whatwg-fetch/whatwg-fetch.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ declare class Body {
5151
arrayBuffer(): Promise<ArrayBuffer>;
5252
blob(): Promise<Blob>;
5353
formData(): Promise<FormData>;
54-
json(): Promise<JSON>;
54+
json(): Promise<any>;
5555
text(): Promise<string>;
5656
}
5757
declare class Response extends Body {

0 commit comments

Comments
 (0)