Merge pull request #6141 from giuseppelt/patch-1

Whatwg-fetch: Allow body.json typed result
This commit is contained in:
Masahiro Wakame
2015-10-06 23:27:22 +09:00
+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 {