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

12 lines
469 B
TypeScript
Executable file

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;