Skip to content

Commit

Permalink
chore: export BackoffStrategy types
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Jan 12, 2024
1 parent c298511 commit 66de728
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/types/backoff-strategy.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import { MinimalJob } from '../interfaces/minimal-job';

type BackoffStrategy4 = (
export type BackoffStrategy4 = (
attemptsMade: number,
type: string,
err: Error,
job: MinimalJob,
) => Promise<number> | number;

type BackoffStrategy3 = (
export type BackoffStrategy3 = (
attemptsMade: number,
type: string,
err: Error,
) => Promise<number> | number;

type BackoffStrategy2 = (
export type BackoffStrategy2 = (
attemptsMade: number,
type: string,
) => Promise<number> | number;

type BackoffStrategy1 = (attemptsMade: number) => Promise<number> | number;
export type BackoffStrategy1 = (attemptsMade: number) => Promise<number> | number;

type BackoffStrategy0 = () => Promise<number> | number;
export type BackoffStrategy0 = () => Promise<number> | number;

export type BackoffStrategy =
| BackoffStrategy4
Expand Down

0 comments on commit 66de728

Please sign in to comment.