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: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/retry
Credits
These definitions were written by Jamie Birch.