mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
followRedirect is documented to also accept a function
This commit is contained in:
1 parent
af5b8275d1
commit
c86e7bad40
1 file changed
+1
-1
Vendored
+1
-1
@@ -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