From b635ffe8a70097f8b8bcd669959fcfb520148d7c Mon Sep 17 00:00:00 2001 From: Niklas Lindgren Date: Wed, 16 May 2018 16:12:58 +0100 Subject: [PATCH] feat: amend Body definition --- types/node-fetch/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/node-fetch/index.d.ts b/types/node-fetch/index.d.ts index 5c9c8c3741..dc11802c76 100644 --- a/types/node-fetch/index.d.ts +++ b/types/node-fetch/index.d.ts @@ -115,11 +115,14 @@ export class Blob { } export class Body { + constructor(body?: any, opts?: { size?: number; timeout?: number }); + blob(): Promise; bodyUsed: boolean; body: NodeJS.ReadableStream; json(): Promise; json(): Promise; text(): Promise; + textConverted(): Promise; buffer(): Promise; arrayBuffer(): Promise; }