@thi.ng/transducers-async
Version:
Async versions of various highly composable transducers, reducers and iterators
10 lines • 371 B
TypeScript
import type { AsyncTransducer, AsyncTxLike } from "./api.js";
export declare const ensureAsyncTransducer: <A, B>(x: AsyncTxLike<A, B>) => AsyncTransducer<A, B>;
/**
* Guard helper function. Throws error if `x` is not an iterable or async
* iterable.
*
* @param x
*/
export declare const ensureIterable: (x: any) => Iterable<any>;
//# sourceMappingURL=ensure.d.ts.map