/* @ts-self-types="./types.d.ts" */ import { ItemsOf } from "../types.js"; import "../index.js"; export type Predicate = (item: T, index: number, array: readonly T[]) => boolean; export type MappingFn = (item: T, index: number, array: readonly T[]) => V; export type FlattenArray = T extends any[] ? FlattenArray> : T; export type ModifyValue = Omit & { [key in K]: V; };