You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

options.d.ts 469B

123456789101112
  1. export declare type JitterType = "none" | "full";
  2. export declare type BackoffOptions = Partial<IBackOffOptions>;
  3. export interface IBackOffOptions {
  4. delayFirstAttempt: boolean;
  5. jitter: JitterType;
  6. maxDelay: number;
  7. numOfAttempts: number;
  8. retry: (e: any, attemptNumber: number) => boolean | Promise<boolean>;
  9. startingDelay: number;
  10. timeMultiple: number;
  11. }
  12. export declare function getSanitizedOptions(options: BackoffOptions): IBackOffOptions;