mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
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).
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
1c44f1681f
commit
62ef71cd97
2
types/node-ipc/index.d.ts
vendored
2
types/node-ipc/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user