This commit is contained in:
Jacob Eggers committed 2015-10-28 00:05:07 -07:00
1 parent 62eedc3121
commit 1d7d9e514e
2 files changed
+13 -4

No files matched your search

+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;