Effect CommunityEC
Effect Community3y ago
18 replies
bigpopakap

Implementing Validation with Effect TypeScript Library and Functional Programming

@Effect Bot how would I implement this in the Effect typescript library using functional programming?

const validate = <A>(validators: readonly ((thing: A) => Either<string, A>)[]) => (thing: A): Either<string[], A> =>
  // what is the implementation?
Was this page helpful?