UNPKG

wiki-saikou

Version:

The library provides the out of box accessing to MediaWiki API in both browsers & Node.js, and the syntax is very similar to vanilla `new mw.Api()`. TypeScript definition included~

6 lines (5 loc) 229 B
export declare const useRetry: <T>(fn: () => Promise<T>, options: { retry?: number; onRetry?: (error: Error, retryCount: number) => void; shouldRetry?: (error: Error, retryCount: number) => boolean; }) => Promise<T>;