@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) • 601 B
TypeScript
/**
* @module Collection
*/
import { type ICollection, type Map } from "../../../../collection/contracts/_module-exports.js";
/**
* @internal
*/
export declare class GroupByIterable<TInput, TOutput = TInput> implements Iterable<[TOutput, ICollection<TInput>]> {
private collection;
private selectFn;
private makeCollection;
constructor(collection: ICollection<TInput>, selectFn: Map<TInput, ICollection<TInput>, TOutput> | undefined, makeCollection: <TInput>(iterable: Iterable<TInput>) => ICollection<TInput>);
[Symbol.iterator](): Iterator<[TOutput, ICollection<TInput>]>;
}