-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathq.d.ts
55 lines (50 loc) · 1.43 KB
/
q.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
declare module "q" {
export class deferred {
promise : makePromise;
public resolve(resolvedValue) : any;
public reject(exception) : any;
public notify() : void;
}
export function defer() : deferred;
export class makePromise {
constructor (descriptor, fallback, valueOf, exception);
public then(fulfilled? , rejected? , progressed? ) : makePromise;
public isResolved() : boolean;
public isFulfilled() : boolean;
public isRejected() : boolean;
public when(fulfilled?, rejected?, progressed?) : makePromise;
public spread(fulfilled?, rejected?) : makePromise;
public send(op) : makePromise;
public get() : makePromise;
public put() : makePromise;
public del() : makePromise;
public post() : makePromise;
public invoke(name/*, args...*/);
public keys();
public apply();
public call();
public bind();
public fapply();
public fcall();
public fbind();
public all();
public allResolved();
public view();
public viewInfo();
public timeout();
public delay();
public catch();
public finally();
public fail();
public fin();
public progress();
public end();
public ncall();
public napply();
public nbind();
public npost();
public ninvoke();
public nend();
}
export function when(promise : makePromise, fulfilled, rejected, progressed) : makePromise;
}