DEV Community

Discussion on: fp-ts and Beautiful API Calls

Collapse
 
urgent profile image
thisbounty.com

Very helpful. I was validating input, and then generating a task. Much easier to just start with the input in the task container, and validating that with chain.

One thing is fat arrows and generics do not compile in tsx files, typescript with JSX support. Instead I used a function. Also failure needs an import from io-ts/lib/PathReporter