mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
26 lines
701 B
TypeScript
26 lines
701 B
TypeScript
// Type definitions for bluebird-retry 0.11
|
|
// Project: https://github.com/jut-io/bluebird-retry
|
|
// Definitions by: Pascal Vomhoff <https://github.com/pvomhoff>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import Promise = require('bluebird');
|
|
|
|
declare function retry<T>(func: (param: T) => void, options?: retry.Options): Promise<T>;
|
|
|
|
declare namespace retry {
|
|
interface Options {
|
|
interval?: number;
|
|
backoff?: number;
|
|
max_interval?: number;
|
|
timeout?: number;
|
|
max_tries?: number;
|
|
predicate?: any;
|
|
throw_original?: boolean;
|
|
context?: any;
|
|
args?: any;
|
|
}
|
|
}
|
|
|
|
export = retry;
|