mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
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:
committed by
GitHub
parent
d7f4aff454
commit
92f1e73b1c
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user