Handling Multiple Effects with Validation in TypeScript
Based on the docs when trying to use
What I'm trying to achieve is to run a set of effects and either go the success path or return an array of errors, kind of like a schema validation on some business rules etc. Without using schema how would you do that?
I'm getting the following output:
Effect.validate I'd expect to get either Effect<[A,B,C]> or Effect<never, [E1,E2,E3]>What I'm trying to achieve is to run a set of effects and either go the success path or return an array of errors, kind of like a schema validation on some business rules etc. Without using schema how would you do that?
I'm getting the following output:
