UNPKG

@tuplo/fletcher

Version:

Web scraping HTTP request library

10 lines (9 loc) 304 B
import { type WrapOptions } from "retry"; export type IOptions = { onRetry?: ((e: Error, attempt: number) => unknown) | undefined; } & WrapOptions; type IAsyncFn<T> = { (...args: unknown[]): Promise<T>; }; export declare function retry<T>(fn: IAsyncFn<T>, opts: IOptions): Promise<T>; export {};