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
/
index.d.ts
5 lines
(4 loc)
•
246 B
TypeScript
View Raw
1
2
3
4
5
import
{
Options
,
SuperEmitter
}
from
"./types"
;
declare
function
forEmitOf<T =
any
>(
emitter
:
SuperEmitter
):
AsyncIterable
<T>;
declare
function
forEmitOf<T =
any
>(
emitter
:
SuperEmitter
,
options
:
Options
<T>):
AsyncIterable
<T>;
export
= forEmitOf;