From 62ef71cd97015dbd37095185056451b8910b657e Mon Sep 17 00:00:00 2001 From: Johannes Dobler Date: Tue, 5 Nov 2019 22:19:19 +0100 Subject: [PATCH] add number type to maxRetries (#40019) maxRetries can also be a number to specify the number of retries. Currently it is only possible to either do no retry or 1 retry (with setting to true). --- types/node-ipc/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node-ipc/index.d.ts b/types/node-ipc/index.d.ts index 92eaaea49d..4eed4dc739 100644 --- a/types/node-ipc/index.d.ts +++ b/types/node-ipc/index.d.ts @@ -287,7 +287,7 @@ declare namespace NodeIPC { * if set, it represents the maximum number of retries after each disconnect before giving up * and completely killing a specific connection */ - maxRetries: boolean; + maxRetries: boolean | number; /** * Default: false * Defaults to false meaning clients will continue to retry to connect to servers indefinitely at the retry interval.