DEV Community

Discussion on: Data Validation in Typescript Using the Either Pattern

Collapse
 
ssimontis profile image
Scott Simontis • Edited

Here is what I use in C#, I call it Option instead of Either but they're effectively the same thing. I don't think Typescript generics are complex enough to enable some of this code, but I hope it inspires you and you learn something new! Feel free to ask questions.

I couldn't get the LiquidTag working to share my Gist, so here is the link to it.

Collapse
 
polyov_dev profile image
Evan Derby

It's really neat to see how you implemented these ideas in a super object-oriented language like C#! Thanks for sharing!