Bones/node_modules/popsicle-retry/dist/index.d.ts

8 lines
381 B
TypeScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
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;