Bones/node_modules/popsicle-retry/dist/index.d.ts
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

8 lines
381 B
TypeScript

import { Request } from 'popsicle';
declare function popsicleRetry(retries?: (request: Request, iter: number) => number): (self: Request) => void;
declare namespace popsicleRetry {
function retryAllowed(request: Request): boolean;
function retries(count?: number, isRetryAllowed?: typeof retryAllowed): (request: Request, iter: number) => number;
}
export = popsicleRetry;