mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-11 03:27:47 +08:00
node: Fix net.Socket definition (#18275)
v0.12.x: https://nodejs.org/docs/latest-v0.12.x/api/net.html#net_new_net_socket_options v4: https://nodejs.org/dist/latest-v4.x/docs/api/net.html#net_new_net_socket_options v6: https://nodejs.org/dist/latest-v6.x/docs/api/net.html#net_new_net_socket_options v7: https://nodejs.org/dist/latest-v7.x/docs/api/net.html#net_new_net_socket_options v8: https://nodejs.org/api/net.html#net_new_net_socket_options
This commit is contained in:
committed by
Wesley Wigham
parent
e030446e88
commit
527914c2a3
@@ -2193,7 +2193,12 @@ namespace net_tests {
|
||||
* 7. lookup
|
||||
* 8. timeout
|
||||
*/
|
||||
let _socket: net.Socket;
|
||||
let _socket: net.Socket = new net.Socket({
|
||||
fd: 1,
|
||||
allowHalfOpen: false,
|
||||
readable: false,
|
||||
writable: false
|
||||
});
|
||||
|
||||
let bool: boolean;
|
||||
let buffer: Buffer;
|
||||
|
||||
Reference in New Issue
Block a user