Icard/angular-clarity-master(work.../node_modules/exponential-backoff/dist/options.d.ts

13 lines
469 B
TypeScript

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;