DEV Community

Discussion on: Getting started with fp-ts: Either vs Validation

Collapse
 
josephr5000 profile image
josephr5000

I've been following your blog series, and am keen to better understand how this applicative validation works so I pasted your sample above into my code. Unfortunately I get "Argument of type 'Either, [string, string, string]>' is not assignable to parameter of type 'unknown[]'." error on the sequenceT(getValidation...line above. Using fp-ts @ 2.2.0 and Typescript @ 3.7.3. What would be expecting a parameter of type unknown[]?

Thread Thread
 
gcanti profile image
Giulio Canti

Sorry, I can't repro, the sample above looks fine