Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@quenty/valueobject) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ValueObject
To work like value objects in Roblox and track a single item with .Changed events. The motivation here is to keep it simple to work with an encapsulated value. Instead of exposing an IPropertyChanged
interface like C# might do, we instead expose objects with .Changed that are encapsulated within the object in question.
Installation
npm install @quenty/valueobject --save
Features
- Battle tested
- Can take in a default value
- Automatically fires with a maid that exists for the lifetime of the value