Skip to content

Commit

Permalink
perf(helpers): remove unnecessary function overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Sep 27, 2024
1 parent c50fbc5 commit e077bad
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Support/function/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@ import type { MaybeArray } from '../type';
* @return {Promise<any>}
*/

export default async function retry<T>(
fn: () => Promise<T>,
maxRetries: number[],
timeout?: undefined,
errorCheck?: (err: unknown) => boolean
): Promise<T>;
export default async function retry<T>(
fn: () => Promise<T>,
maxRetries?: number,
timeout?: number | ((currentAttemptCount: number) => number),
errorCheck?: (err: unknown) => boolean
): Promise<T>;
export default async function retry<T>(
fn: () => Promise<T>,
maxRetries: MaybeArray<number> = 3,
Expand Down

0 comments on commit e077bad

Please sign in to comment.