From fec2c4d1219c5f504d8c7667956753a3025409b9 Mon Sep 17 00:00:00 2001 From: 3n-mb <3n-mb@users.noreply.github.com> Date: Tue, 7 Mar 2017 18:34:05 -0500 Subject: [PATCH] Fix for issue 14997 in DefinitelyTyped Making this via proposed change, not forked repo, like I did with PR #15044. That one fails ci. --- node/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/index.d.ts b/node/index.d.ts index d23cc981e4..12d9ce4274 100644 --- a/node/index.d.ts +++ b/node/index.d.ts @@ -1903,7 +1903,7 @@ declare module "net" { bufferSize: number; setEncoding(encoding?: string): this; write(data: any, encoding?: string, callback?: Function): void; - destroy(): void; + destroy(err?: any): void; pause(): this; resume(): this; setTimeout(timeout: number, callback?: Function): void;