UNPKG
telegram-timeout-fix
Version:
latest (2.26.11)
2.26.11
2.26.10
2.26.9
2.26.8
NodeJS/Browser MTProto API Telegram client library,
github.com/gram-js/gramjs
gram-js/gramjs
telegram-timeout-fix
/
extensions
/
Deferred.d.ts
9 lines
(8 loc)
•
260 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
default
class
Deferred
<T =
void
> {
promise
:
Promise
<T>;
reject
:
(
reason
?:
any
) =>
void
;
resolve
:
(
value
: T |
PromiseLike
<T>
) =>
void
;
constructor
(
);
static
resolved
():
Deferred
<
void
>;
static
resolved<T>(
value
: T):
Deferred
<T>; }