This commit is contained in:
Jacob Eggers
2015-10-28 00:05:07 -07:00
parent 62eedc3121
commit 1d7d9e514e
2 changed files with 13 additions and 4 deletions
+11 -3
View File
@@ -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;