UNPKG

@toreda/types

Version:

Common mappings, aliases, and types used in Toreda TypeScript packages.

6 lines (5 loc) 231 B
import type { ArrayFunc } from './array/func'; export interface Iterable<ItemT, ReturnT, NextT = undefined> { forEach: (fn: ArrayFunc<ItemT, ReturnT>) => ReturnT; [Symbol.iterator]: () => Iterator<ItemT, ReturnT, NextT>; }