pfgray / ts-adt

Generate Algebraic Data Types and pattern matchers
MIT License
316 stars 13 forks source link

refinement & makeRefinement #26

Closed anthonyjoeseph closed 3 years ago

anthonyjoeseph commented 3 years ago

Closes https://github.com/pfgray/ts-adt/issues/19

anthonyjoeseph commented 3 years ago

@pfgray would you be more comfortable if I used your original implementation? https://github.com/pfgray/ts-adt/issues/19#issuecomment-835833128

pfgray commented 3 years ago

Nah, this looks perfect, apologies for the delay

pfgray commented 3 years ago

I tweaked it a bit to take a variable amount of tags, should be available in v2.1.0 now, thanks!

anthonyjoeseph commented 3 years ago

Amazing, thank you!