mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Fix node-zeromq ArrayBuffer type to Buffer
This commit is contained in:
@@ -11,7 +11,7 @@ function test1() {
|
||||
function test2() {
|
||||
var sock = zmq.socket('push');
|
||||
sock.bindSync('tcp://127.0.0.1:3000');
|
||||
sock.send(new ArrayBuffer(1000));
|
||||
sock.send(new Buffer(1000));
|
||||
}
|
||||
|
||||
function test3() {
|
||||
|
||||
Vendored
+3
-3
@@ -133,10 +133,10 @@ declare module 'zmq' {
|
||||
/**
|
||||
* Send the given `msg`.
|
||||
*
|
||||
* @param msg The message
|
||||
* @param flags Message flags
|
||||
* @param msg {Buffer} The message
|
||||
* @param flags {number} Optional message flags
|
||||
*/
|
||||
send(msg: ArrayBuffer, flags?: number): Socket;
|
||||
send(msg: Buffer, flags?: number): Socket;
|
||||
|
||||
/**
|
||||
* Send the given `msg`.
|
||||
|
||||
Reference in New Issue
Block a user