node.d.ts : dgram : Allow option parameters to be omitted.

This commit is contained in:
Leo Liang
2016-08-17 01:35:43 +08:00
parent 3a056e3864
commit b8e87fd530
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -507,9 +507,12 @@ namespace tty_tests {
var ds: dgram.Socket = dgram.createSocket("udp4", (msg: Buffer, rinfo: dgram.RemoteInfo): void => {
});
ds.bind();
ds.bind(41234);
var ai: dgram.AddressInfo = ds.address();
ds.send(new Buffer("hello"), 0, 5, 5000, "127.0.0.1", (error: Error, bytes: number): void => {
});
ds.send(new Buffer("hello"), 5000, "127.0.0.1");
////////////////////////////////////////////////////
///Querystring tests : https://nodejs.org/api/querystring.html