From 66de7282567810a2cc65d8a24089e834785b9763 Mon Sep 17 00:00:00 2001 From: Rogger Valverde Date: Sat, 6 Jan 2024 17:47:53 -0600 Subject: [PATCH] chore: export BackoffStrategy types --- src/types/backoff-strategy.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/types/backoff-strategy.ts b/src/types/backoff-strategy.ts index 566c1ff30b..ae8b17a9df 100644 --- a/src/types/backoff-strategy.ts +++ b/src/types/backoff-strategy.ts @@ -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; -type BackoffStrategy3 = ( +export type BackoffStrategy3 = ( attemptsMade: number, type: string, err: Error, ) => Promise | number; -type BackoffStrategy2 = ( +export type BackoffStrategy2 = ( attemptsMade: number, type: string, ) => Promise | number; -type BackoffStrategy1 = (attemptsMade: number) => Promise | number; +export type BackoffStrategy1 = (attemptsMade: number) => Promise | number; -type BackoffStrategy0 = () => Promise | number; +export type BackoffStrategy0 = () => Promise | number; export type BackoffStrategy = | BackoffStrategy4