From 9f9214a5cf56f6d1ac80b421eb94157d42a005ba Mon Sep 17 00:00:00 2001 From: jonathantyates Date: Mon, 11 May 2015 11:29:10 -0400 Subject: [PATCH] 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. --- whatwg-fetch/whatwg-fetch.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whatwg-fetch/whatwg-fetch.d.ts b/whatwg-fetch/whatwg-fetch.d.ts index 4a4a9612c..9efd039b4 100644 --- a/whatwg-fetch/whatwg-fetch.d.ts +++ b/whatwg-fetch/whatwg-fetch.d.ts @@ -51,7 +51,7 @@ declare class Body { arrayBuffer(): Promise; blob(): Promise; formData(): Promise; - json(): Promise; + json(): Promise; text(): Promise; } declare class Response extends Body {