Merge pull request #3222 from biswarup91/master

Fixed the callback function parameter type in https.request and https.get
This commit is contained in:
Masahiro Wakame
2014-11-26 19:51:38 +09:00
+2 -2
View File
@@ -528,8 +528,8 @@ declare module "https" {
};
export interface Server extends tls.Server { }
export function createServer(options: ServerOptions, requestListener?: Function): Server;
export function request(options: RequestOptions, callback?: (res: events.EventEmitter) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: events.EventEmitter) =>void ): http.ClientRequest;
export function request(options: RequestOptions, callback?: (res: http.ClientResponse) =>void ): http.ClientRequest;
export function get(options: RequestOptions, callback?: (res: http.ClientResponse) =>void ): http.ClientRequest;
export var globalAgent: Agent;
}