@lou.codes/types
Version:
🏷️ Lou's Code shared types
14 lines (13 loc) • 332 B
TypeScript
/**
* Read-only `IterableIterator`.
*
* @category Iterables
* @remarks
* This is just an read-only alternative to `IterableIterator` to avoid unwanted
* mutations.
*
* @template Item Type of the items in the `IterableIterator`.
*/
export type ReadOnlyIterableIterator<Item = unknown> = Readonly<
IterableIterator<Item>
>;