Effect CommunityEC
Effect Community2y ago
20 replies
Marvinside

Issue with Schema & Array nesting in Types

I'm having some issue with the types for a nested Array which I want to flatten.
To do this, I created a Flatten-Schema which looks like this: S.Schema<Array<A>, Array<Array<I>>, R>.
However when I try to use it with a more complex schema, I get typescript Errors. (Running the code anyways results in the correct result, just a typing issue).

https://gist.github.com/marvinside/89c46a1666fc844e02e3b4aeb01aca80
(Code is to long for a Discord Message)
Was this page helpful?