ts-prelude

0.0.8 • Public • Published

ts-prelude

CI

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 Sidebar

Install

npm i ts-prelude

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

96.2 kB

Total Files

37

Last publish

Collaborators

  • mattphillips