Installation
npm install --save @types/promise-retry
Summary
This package contains type definitions for promise-retry (https://github.com/IndigoUnited/node-promise-retry).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry.
import { OperationOptions } from "retry";
type RetryableFn<ResolutionType> = (retry: (error: any) => never, attempt: number) => Promise<ResolutionType>;
declare function promiseRetry<ResolutionType>(
retryableFn: RetryableFn<ResolutionType>,
options?: OperationOptions,
): Promise<ResolutionType>;
declare function promiseRetry<ResolutionType>(
options: OperationOptions,
retryableFn: RetryableFn<ResolutionType>,
): Promise<ResolutionType>;
export = promiseRetry;
Additional Details
- Last updated: Wed, 18 Oct 2023 05:47:09 GMT
- Dependencies: @types/retry
Credits
These definitions were written by Jamie Birch.