@pati_gallardo When dealing with JSON I
move that code into a function which ensures the the data is correct (or knows
it for a fact), and returns typed values to the rest of the application, so one
does not need to deal with untyped values in the rest of the code.
1 reply
@pati_gallardo
https://gcanti.github.io/fp-ts/modules/Either.ts.html#parsejson is a nice
helper in situations where you know the type of the JSON for a fact.