https://github.com/mattphillips/ts-prelude
https://github.com/mattphillips/ts-prelude
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattphillips/ts-prelude
- Owner: mattphillips
- License: mit
- Created: 2022-01-16T17:15:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-22T16:24:10.000Z (almost 2 years ago)
- Last Synced: 2025-04-13T06:13:11.161Z (3 months ago)
- Language: TypeScript
- Size: 137 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ts-prelude
[](https://github.com/mattphillips/ts-prelude/actions/workflows/all.yaml)
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
- RefUtils:
- 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](https://github.com/reazen/relude/)
- [Refined scala](https://github.com/fthomas/refined)