mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-28 16:34:28 +00:00
followRedirect is documented to also accept a function
This commit is contained in:
2
request/request.d.ts
vendored
2
request/request.d.ts
vendored
@@ -79,7 +79,7 @@ declare module 'request' {
|
||||
method?: string;
|
||||
headers?: Headers;
|
||||
body?: any;
|
||||
followRedirect?: boolean;
|
||||
followRedirect?: boolean|((response: http.IncomingMessage) => boolean);
|
||||
followAllRedirects?: boolean;
|
||||
maxRedirects?: number;
|
||||
encoding?: string;
|
||||
|
||||
Reference in New Issue
Block a user