UNPKG
iterama
Version:
latest (0.6.1)
0.6.1
0.6.0
0.5.0
0.4.1
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Composable functional (async) iterable helpers
github.com/nextools/metarepo
nextools/metarepo
iterama
/
types
/
scan-async.d.ts
3 lines
(2 loc)
•
253 B
TypeScript
View Raw
1
2
3
export
declare
type
TScanFnAsync
<T, R> =
(
acc
: R,
value
: T,
index
:
number
) =>
Promise
<R> | R;
export
declare
const
scanAsync
: <T, R>
(
scanFn
:
TScanFnAsync
<T, R>,
initial
: R |
Promise
<R>
) =>
(
iterable
:
AsyncIterable
<T> |
Iterable
<T>
) =>
AsyncIterable
<R>;