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)
This commit is contained in:
Daniele Monteleone
2016-10-18 21:01:27 +02:00
committed by GitHub
parent d7f4aff454
commit 92f1e73b1c
+1 -1
View File
@@ -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;