UNPKG

http-retrier

Version:

15 lines 807 B
import { HttpRetrierOptions, HttpRetrierResponse, HttpRetrierSettings } from "./types.js"; /** * * @param {Partial<HttpRetrierSettings>} settings - The settings to initialize the retrier with * @returns {Promise<HttpRetrierResponse>} - A promise that resolves to the response object */ export declare function createHttpRetrier(settings?: Partial<HttpRetrierSettings>): (url: string, options: HttpRetrierOptions) => Promise<HttpRetrierResponse>; /** * HttpRetrier function * @param {string} * @param {HttpRetrierOptions} options - The options for the retrier * @returns {Promise<HttpRetrierResponse>} - A promise that resolves to the response object */ export declare const httpRetrier: (url: string, options: HttpRetrierOptions) => Promise<HttpRetrierResponse>; //# sourceMappingURL=index.d.ts.map