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:
jonathantyates
2015-05-11 11:29:10 -04:00
parent cee9cac504
commit 9f9214a5cf
+1 -1
View File
@@ -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 {