Files
DefinitelyTyped/types/p-retry/index.d.ts

19 lines
608 B
TypeScript

// Type definitions for p-retry 1.0
// Project: https://github.com/sindresorhus/p-retry#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { OperationOptions } from 'retry';
export = pRetry;
declare function pRetry<T>(input: (attemptCount: number) => PromiseLike<T> | T, options?: OperationOptions): Promise<T>;
declare namespace pRetry {
class AbortError extends Error {
readonly name: 'AbortError';
readonly originalError: Error;
constructor(message: string | Error);
}
}