Whatwg-fetch: Allow body.json typed result

Useful to avoid assertions and keep a consistent code
This commit is contained in:
giuseppelt
2015-10-05 19:32:27 +02:00
parent bc69320319
commit 3796e5ed1b
+1
View File
@@ -52,6 +52,7 @@ declare class Body {
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
json<T>(): Promise<T>;
text(): Promise<string>;
}
declare class Response extends Body {