Implementing Immutable Map of Union Types in Effect
I am trying to create an immutable map of immutable records that are disjunct unions. I think Effect supports that, but I cannot figure out what's the intended way of doing it.
How could I achieve this with Effect? Do you recommend I check out
@effect/schema or use the core library? How do I create immutable records/structs for _TypeA and _TypeB in Effect?NOTE: I am not trying to parse or stringify data at this moment and I got confused whether @effect/schema is the right tool.