mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +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
Vendored
+1
-1
@@ -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