Skip to content

Value Objects documentation ​

A dependency-less TypeScript library for validated, immutable primitive wrappers and small utility value objects.

Documentation

This site is the main documentation for @haskou/value-objects. Use it as the source of truth for installation, examples, errors, serialization notes, and the API reference.

Start here ​

Package ​

bash
npm install @haskou/value-objects
bash
yarn add @haskou/value-objects

Reference sections ​

SectionContents
Base objectsValueObject, NullObject, Enum
Strings and numbersStringValueObject, Email, Color, Password, NumberValueObject, Integer, PositiveInteger, PositiveNumber
IdentifiersUUID, ShortId
MoneyMoney, Currency
File sizeFileSize, FileSizeUnit
TimeTimestamp, TimestampInterval, CalendarDay, Duration, Hour, Day, Year, Month, MonthOfYear, DayOfWeek
CoordinatesLatitude, Longitude, Coordinates
HashesHash, MD5Hash, SHA256Hash, SHA512Hash
MediaMedia
CollectionsUniqueObjectArray

Released under the MIT License.