DEV Community

loading...

Discussion on: Matching your way to consistent states

Collapse
macsikora profile image
Maciej Sikora

Very nice article. Exhaustiveness checking is the thing!

Collapse
gillchristian profile image
Christian Gill Author

Thanks!

Yeah, I was quite surprised when I found out that it was as simple as making that Matcher object require all the elements of the unions as keys. TypeScript 🤘