morphic-ts
morphic-ts copied to clipboard
[Question] How can I define an empty for each type of the ADT
Hi, First thanks for the library. It is very cool. I have a question. Is there a way to loop on each element of the ADT and define an empty element? I started with:
Object.keys(adt.keys).map((t)=>....)
But then I need to pattern match on a string/key, not on an element of the ADT. Any help appreciated.