mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixes #6489
This commit is contained in:
Vendored
+11
-3
@@ -57,9 +57,15 @@ declare module 'request' {
|
||||
|
||||
export var initParams: any;
|
||||
|
||||
export interface Options {
|
||||
url?: string;
|
||||
uri?: string;
|
||||
interface UriOptions {
|
||||
uri: string;
|
||||
}
|
||||
|
||||
interface UrlOptions {
|
||||
url: string;
|
||||
}
|
||||
|
||||
interface OptionalOptions {
|
||||
callback?: (error: any, response: http.IncomingMessage, body: any) => void;
|
||||
jar?: any; // CookieJar
|
||||
formData?: any; // Object
|
||||
@@ -90,6 +96,8 @@ declare module 'request' {
|
||||
gzip?: boolean;
|
||||
}
|
||||
|
||||
export type Options = (UriOptions|UrlOptions)&OptionalOptions;
|
||||
|
||||
export interface RequestPart {
|
||||
headers?: Headers;
|
||||
body: any;
|
||||
|
||||
Reference in New Issue
Block a user