UNPKG

@myria/airdrop-js

Version:

Airdrop in L1 with claim based approach

14 lines (13 loc) 544 B
/** * Common module. * @module Common */ import { RetryOptions } from '../type'; /** * Attempts to execute a function that returns a promise and retries if the function throws an error. * * @param {Function} fn - A function that returns a promise to be executed. * @param {RetryOptions} options - Configuration options for the retry behavior. * @returns {Promise<void>} The result of the function execution if successful. */ export declare function retry<T>(fn: (retryCount: number) => Promise<T>, options?: RetryOptions): Promise<T>;