Effect CommunityEC
Effect Community15mo ago
73 replies
Titouan Créac'h

Effect Playground

I have always this case with typescript and union/products and I don't know how to fix (as any).
Take this as an example:

https://effect.website/play#bcec1b759175

In this example, typescript try to do S.parseJson(A | B | C) where I would like it to do S.parseJson(A) | S.parseJson(B) | S.parseJson(C), what is the trick to do that ?
Was this page helpful?