NET-Web-API-w-Angular/my-app/node_modules/exponential-backoff/dist/options.d.ts

13 lines
469 B
TypeScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
export declare type JitterType = "none" | "full";
export declare type BackoffOptions = Partial<IBackOffOptions>;
export interface IBackOffOptions {
delayFirstAttempt: boolean;
jitter: JitterType;
maxDelay: number;
numOfAttempts: number;
retry: (e: any, attemptNumber: number) => boolean | Promise<boolean>;
startingDelay: number;
timeMultiple: number;
}
export declare function getSanitizedOptions(options: BackoffOptions): IBackOffOptions;