@tuplo/fletcher
Version:
Web scraping HTTP request library
10 lines (9 loc) • 304 B
TypeScript
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 {};