Type Error with `optionalToRequired` and Custom Decoding Logic
Am I misusing
I am trying to decode
Since
optionalToRequired here? I have a type error but the type inference and runtime behaviour are OK.I am trying to decode
{ parent?: number } to { parent: number | null }.Since
null is not a subtype of number I can't use withDecodingDefault.