mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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:
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