Fixed the callback function parameter type in https.request and https.get

This commit is contained in:
Biswarup Pal
2014-11-25 15:36:26 +05:30
parent 266324c29c
commit 1e9c0dbf35

4
node/node.d.ts vendored
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;
}