@seij/common-types
v0.1.5
Published
Shared TypeScript primitives and utility types used across Seij projects, with a focus on business data and date/time handling.
Downloads
154
Readme
common-types
Shared TypeScript primitives and utility types used across Seij projects, with a focus on business data and date/time handling.
What it provides
ProblemandtoProblemhelpers to normalize errors into a consistent shape, following the RFC 7807 standard.throwErrorfor inline error throwing with correct TypeScript control-flow typing.- Date and time primitives and helpers for
LocalDate,LocalDateTime, month and year utilities, and common formatting helpers (French locale, for now). - Money, currency, percent, and numeric formatting helpers.
- Small data primitives like
Instant,Int,Long, andMonth.
