mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Merge branch 'zeromq-event' of https://github.com/panuhorsmalahti/DefinitelyTyped into panuhorsmalahti-zeromq-event
This commit is contained in:
Vendored
+9
@@ -3,6 +3,8 @@
|
||||
// Definitions by: Dave McKeown <http://github.com/davemckeown>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path='../node/node-0.11.d.ts' />
|
||||
|
||||
interface EventEmitter {}
|
||||
|
||||
declare module 'zmq' {
|
||||
@@ -158,6 +160,13 @@ declare module 'zmq' {
|
||||
*/
|
||||
close(): Socket;
|
||||
|
||||
/**
|
||||
* Socket event
|
||||
* @param eventName {string}
|
||||
* @param callback {Function}
|
||||
*/
|
||||
on(eventName: string, callback: (buffer: Buffer) => void): void;
|
||||
|
||||
// Socket Options
|
||||
_fd: any;
|
||||
_ioevents: any;
|
||||
|
||||
Reference in New Issue
Block a user