Closed xzyfer closed 4 years ago
Additionally when trying to satisfy the interface with the defaultOptions
from ExponentialBackoff
.exponential({
generator: decorrelatedJitterGenerator,
maxDelay: 30000,
maxAttempts: Infinity,
exponent: 2,
initialDelay: 128,
});
Results in the following error
Type 'GeneratorFn<[number, number]>' is not assignable to type 'GeneratorFn<IRetryBackoffContext<unknown>>'.
Type '[number, number]' is not assignable to type 'IRetryBackoffContext<unknown>'.
Thanks, fixed in f96beb5 and published in 0.1.2.
Currently trying to do the following
Results in the following error
However the
ExponentialBackoff
constructor merges the supplied options with the a default set of options. This means all properties onIExponentialBackoffOptions
are optional.