UNPKG
for-emit-of
Version:
latest (1.4.0)
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Turn Node.js Events into Async Iterables
github.com/danstarns/for-emit-of
danstarns/for-emit-of
for-emit-of
/
dist
/
queue.d.ts
7 lines
(6 loc)
•
165 B
TypeScript
View Raw
1
2
3
4
5
6
7
export
interface
Queue
<T =
any
> {
length
:
number
;
shift
(): T |
undefined
;
push
(
value
: T):
void
; }
export
declare
function
getQueue<T =
any
>():
Queue
<T>;