import { Key } from './Key.js'; import { Values } from './Values.js'; import './Collection.js'; /** * Function that is used to iterate over a collection. * * @template T The type of the collection. * @template R The type of the return value. * @example * type Collection = { a: number, b: string } * type Iteratee = IteratorFunction // (value: number | string, key: 'a' | 'b', object: Collection) => boolean */ type IteratorFunction = (value: Values, key: Key, object: T) => R; export type { IteratorFunction };