UNPKG

ts-retry

Version:

A little retry tool to execute a function until the function is successful. Can also bind a timeout to a function. This lib is usable in typescript, in javascript, in node, in SPA tools (rest, Vue, Svelte...) and browser (available in ESM and common js fo

10 lines (9 loc) 854 B
export type { RetryOptions } from "./options"; export { getDefaultRetryOptions, setDefaultRetryOptions } from "./options"; export { retry, retryAsync } from "./retry"; export type { TooManyTries } from "./utils/erros/tooManyTries"; export { isTooManyTries } from "./utils/erros/tooManyTries"; export type { AbortError } from "./utils/erros/abortError"; export { isAbortError } from "./utils/erros/abortError"; export type { RetryUtilsOptions } from "./utils"; export { retryAsyncUntilDefined, retryAsyncUntilDefinedDecorator, retryAsyncUntilTruthy, retryAsyncUntilTruthyDecorator, retryUntilDefined, retryUntilDefinedDecorator, retryUntilTruthy, retryUntilTruthyDecorator, retryAsyncUntilResponse, retryAsyncUntilResponseDecorator, createExponetialDelay, createMutiplicableDelay, createRandomDelay, retryAsyncDecorator, retryDecorator, } from "./utils";