UNPKG
@klodianimeri/channeljs
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Javascript channel like communication.
github.com/klodianimeri/channeljs
klodianimeri/channeljs
@klodianimeri/channeljs
/
dist
/
index.d.ts
10 lines
(9 loc)
•
246 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
declare
class
Channel
<T =
any
> { #
private
;
send
(
data
: T):
void
;
close
():
void
; [
Symbol
.
asyncIterator
](): {
next
():
Promise
<
IteratorResult
<T>>;
return
(
value
?:
any
):
Promise
<
IteratorReturnResult
<T>>; }; }