From 3796e5ed1ba5c191880ba943aa5a59b4a1a048f5 Mon Sep 17 00:00:00 2001 From: giuseppelt Date: Mon, 5 Oct 2015 19:32:27 +0200 Subject: [PATCH] Whatwg-fetch: Allow body.json typed result Useful to avoid assertions and keep a consistent code --- whatwg-fetch/whatwg-fetch.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/whatwg-fetch/whatwg-fetch.d.ts b/whatwg-fetch/whatwg-fetch.d.ts index 4d47904a2..86532be60 100644 --- a/whatwg-fetch/whatwg-fetch.d.ts +++ b/whatwg-fetch/whatwg-fetch.d.ts @@ -52,6 +52,7 @@ declare class Body { blob(): Promise; formData(): Promise; json(): Promise; + json(): Promise; text(): Promise; } declare class Response extends Body {