Utilities
Small, focused helpers shared across the ecosystem.
- Collection — Type-safe collection utilities with powerful query, transform, and pagination primitives.
- TimeSpan — Define, manipulate, and compare durations with a typed, immutable API, integrates easily with time libraries like Luxon and Dayjs.
- FileSize — Define, manipulate, and compare file sizes with a typed API, from bytes to gigabytes, with easy unit conversion.
- Backoff Policies — Predefined retry backoff policies, constant and exponential, with configurable delay and jitter.
- ErrorPolicy Type — Decide which errors are handled by resilience middlewares like retry and fallback, using a predicate function or one or more error classes.
- Invocable — A callable entity, either a plain function or an object exposing an invoke method, so functions and class-based services flow through one shared contract.