ts-prelude

[![CI](https//github.com/mattphillips/ts-prelude/actions/workflows/all.yaml)

MIT License

Downloads
17
Stars
3
Committers
1

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:

Package Rankings
Top 21.15% on Npmjs.org
Badges
Extracted from project README
CI