ts-prelude
v0.0.8
Published
[![CI](https://github.com/mattphillips/ts-prelude/actions/workflows/all.yaml/badge.svg)](https://github.com/mattphillips/ts-prelude/actions/workflows/all.yaml)
Downloads
6
Maintainers
Readme
ts-prelude
Currently a collection of functional datatypes that I use on every project and will eventually expand further into a standard lib of fp utils / algebraic-data-types.
ADTs currently available:
- Maybe
- Result
- IO
- AsyncData
- AsyncResult
- Ref
Utils:
- match (pattern matching)
- TaggedUnion (builds discriminatred unions aka ADTs)
- Nominal (construct nominal datatypes)
- Phantom (constuct phantom datatypes)
- Function
- Property (sugar for a nicer
property
based test definition) - Refined (a library to build refined types)
Inspiration for above:
- Haskell
- Purescript
- Scala
- Reason
- Relude
- Refined scala