mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
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.
This commit is contained in:
1 parent
cee9cac504
commit
9f9214a5cf
1 file changed
+1
-1
Vendored
+1
-1
@@ -51,7 +51,7 @@ declare class Body {
|
||||
arrayBuffer(): Promise<ArrayBuffer>;
|
||||
blob(): Promise<Blob>;
|
||||
formData(): Promise<FormData>;
|
||||
json(): Promise<JSON>;
|
||||
json(): Promise<any>;
|
||||
text(): Promise<string>;
|
||||
}
|
||||
declare class Response extends Body {
|
||||
|
||||
Reference in new issue
Block a user