You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using [email protected] and [email protected], but I cannot report an error for decode responses such as Either<DecodeError, A>. This is an example where I want to use the report instead of a raw error.
import*asDfrom'io-ts/Decoder';import{pipe}from'fp-ts/function';import{fold}from'fp-ts/Either';exportfunctiondecode<A>(input: unknown,decoder: D.Decoder<unknown,A>): A{returnpipe(decoder.decode(input),fold((errors)=>{thrownewError(JSON.stringify(errors));// Here I want to use the reporter.},(value: A)=>value,),);}
Are you planning to support the D.DecodeError for reporting?
The text was updated successfully, but these errors were encountered:
Hello,
I am using
[email protected]
and[email protected]
, but I cannot report an error for decode responses such asEither<DecodeError, A>
. This is an example where I want to use the report instead of a raw error.Are you planning to support the
D.DecodeError
for reporting?The text was updated successfully, but these errors were encountered: