@daiso-tech/core
Version:
The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.
15 lines (14 loc) • 589 B
TypeScript
/**
* @module Collection
*/
import { type AsyncModifier, type IAsyncCollection } from "../../../../collection/contracts/_module-exports.js";
/**
* @internal
*/
export declare class AsyncWhenIterable<TInput, TExtended> implements AsyncIterable<TInput | TExtended> {
private collection;
private condition;
private callback;
constructor(collection: IAsyncCollection<TInput>, condition: () => boolean | PromiseLike<boolean>, callback: AsyncModifier<IAsyncCollection<TInput>, IAsyncCollection<TExtended>>);
[Symbol.asyncIterator](): AsyncIterator<TInput | TExtended>;
}