mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
followRedirect is documented to also accept a function
This commit is contained in:
parent
af5b8275d1
commit
c86e7bad40
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user