Utility types for functional TypeScript
Boxed provides functional utility types and functions, while focusing on ease-of-use.
- Provide utility types that make data-manipulation and storage easier
- Immutable (all provided types are)
- Give a good development experience (chaining API, reliable types)
- Simple interoperability (you can convert back and forth to JS native types)
- Compatibility with
ts-pattern
(usingpatterns
we provide).
Option<Value>
Result<Ok, Error>
AsyncData<Value>
Future<Value>
Lazy<Value>
- Some utils like
Deferred
,Dict
&Array
$ yarn add @swan-io/boxed
or
$ npm install --save @swan-io/boxed