forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
27 lines (22 loc) · 739 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Type definitions for bluebird-retry 0.11
// Project: https://github.com/demmer/bluebird-retry
// Definitions by: Pascal Vomhoff <https://github.com/pvomhoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2
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;
}
class StopError extends Error {}
}
export = retry;