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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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