UNPKG

@composite-fetcher/with-retries

Version:

A fetcher core plugin to handle and retry failed requests

11 lines (8 loc) 402 B
import { BasePlugin, PluginHandlerContext, PluginLifecycleHook } from '@composite-fetcher/core'; declare class withRetriesPlugin extends BasePlugin { private defaultMaxRetries; constructor(defaultMaxRetries?: number); private retryOperation; onPostRequest(context: PluginHandlerContext<PluginLifecycleHook.POST_REQUEST>): Promise<void>; } export { withRetriesPlugin as withRetries };