From 92f1e73b1cb07796b10b7d5d4592c9fdb4d5367a Mon Sep 17 00:00:00 2001 From: Daniele Monteleone Date: Tue, 18 Oct 2016 21:01:27 +0200 Subject: [PATCH] Update request.d.ts Use `string | null` for CoreOptions.encoding type as the encoding has to be null in order to get a buffer as the body (needed to download files). [see documentation](https://github.com/request/request#requestoptions-callback) --- request/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request/index.d.ts b/request/index.d.ts index db8f2a3f39..71c69f9d49 100644 --- a/request/index.d.ts +++ b/request/index.d.ts @@ -97,7 +97,7 @@ declare namespace request { followRedirect?: boolean | ((response: http.IncomingMessage) => boolean); followAllRedirects?: boolean; maxRedirects?: number; - encoding?: string; + encoding?: string | null; pool?: any; timeout?: number; proxy?: any;