From 94c44cad2eddccb8bdcb077a8c56a79658632cbc Mon Sep 17 00:00:00 2001 From: Ian Copp Date: Sat, 24 Dec 2016 11:54:35 -0800 Subject: [PATCH] Fix dgram.Socket#ref and #unref (#13242) These two methods both return the socket, than being void. --- node/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/index.d.ts b/node/index.d.ts index a428c3a6ad..f37b6d3cd5 100644 --- a/node/index.d.ts +++ b/node/index.d.ts @@ -2067,8 +2067,8 @@ declare module "dgram" { setMulticastLoopback(flag: boolean): void; addMembership(multicastAddress: string, multicastInterface?: string): void; dropMembership(multicastAddress: string, multicastInterface?: string): void; - ref(): void; - unref(): void; + ref(): this; + unref(): this; /** * events.EventEmitter