@types/request
Advanced tools
Comparing version 2.0.7 to 2.0.8
// Type definitions for request 2.0 | ||
// Project: https://github.com/request/request | ||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, bonnici <https://github.com/bonnici>, Bart van der Schoor <https://github.com/Bartvds>, Joe Skeen <https://github.com/joeskeen>, Christopher Currens <https://github.com/ccurrens>, Jon Stevens <https://github.com/lookfirst> | ||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, | ||
// bonnici <https://github.com/bonnici>, | ||
// Bart van der Schoor <https://github.com/Bartvds>, | ||
// Joe Skeen <https://github.com/joeskeen>, | ||
// Christopher Currens <https://github.com/ccurrens>, | ||
// Jon Stevens <https://github.com/lookfirst> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -20,6 +25,3 @@ // TypeScript Version: 2.3 | ||
declare namespace request { | ||
export interface RequestAPI<TRequest extends Request, | ||
TOptions extends CoreOptions, | ||
TUriUrlOptions> { | ||
export interface RequestAPI<TRequest extends Request, TOptions extends CoreOptions, TUriUrlOptions> { | ||
defaults(options: TOptions): RequestAPI<TRequest, TOptions, RequiredUriUrl>; | ||
@@ -69,5 +71,4 @@ defaults(options: RequiredUriUrl & TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>; | ||
interface DefaultUriUrlRequestApi<TRequest extends Request, | ||
TOptions extends CoreOptions, | ||
TUriUrlOptions> extends RequestAPI<TRequest, TOptions, TUriUrlOptions> { | ||
TOptions extends CoreOptions, | ||
TUriUrlOptions> extends RequestAPI<TRequest, TOptions, TUriUrlOptions> { | ||
defaults(options: TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>; | ||
@@ -178,9 +179,7 @@ (callback?: RequestCallback): TRequest; | ||
export interface RequestCallback { | ||
(error: any, response: RequestResponse, body: any): void; | ||
} | ||
export type RequestCallback = (error: any, response: RequestResponse, body: any) => void; | ||
export type ResponseRequest = CoreOptions & { | ||
uri: Url; | ||
} | ||
}; | ||
@@ -215,3 +214,3 @@ export interface RequestResponse extends http.IncomingMessage { | ||
params?: NameValuePair[]; | ||
} | ||
}; | ||
} | ||
@@ -226,6 +225,6 @@ | ||
chunked?: boolean; | ||
data?: { | ||
data?: Array<{ | ||
'content-type'?: string, | ||
body: string | ||
}[]; | ||
}>; | ||
} | ||
@@ -243,4 +242,4 @@ | ||
getAgent(): http.Agent; | ||
//start(): void; | ||
//abort(): void; | ||
// start(): void; | ||
// abort(): void; | ||
pipeDest(dest: any): void; | ||
@@ -302,3 +301,3 @@ setHeader(name: string, value: string, clobber?: boolean): Request; | ||
verifier?: string; | ||
body_hash?: true | string | ||
body_hash?: true | string; | ||
} | ||
@@ -316,5 +315,5 @@ | ||
export interface CookieJar { | ||
setCookie(cookie: Cookie, uri: string | url.Url, options?: any): void | ||
getCookieString(uri: string | url.Url): string | ||
getCookies(uri: string | url.Url): Cookie[] | ||
setCookie(cookie: Cookie, uri: string | url.Url, options?: any): void; | ||
getCookieString(uri: string | url.Url): string; | ||
getCookies(uri: string | url.Url): Cookie[]; | ||
} | ||
@@ -321,0 +320,0 @@ |
{ | ||
"name": "@types/request", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "TypeScript definitions for request", | ||
@@ -48,4 +48,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "e3f7c1c4b0c619bd9dc52d642c08ecf9a4643b271d88f86362746a3cdf2fe4d0", | ||
"typesPublisherContentHash": "161d4b3b2b96ade52c81b0e0a364752552efa538f29d83bd483b42e9532f8457", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 25 Oct 2017 18:38:05 GMT | ||
* Last updated: Sat, 11 Nov 2017 04:50:57 GMT | ||
* Dependencies: stream, http, https, url, fs, form-data, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15874