ts-to-io
ts-to-io copied to clipboard
Fails on optional properties
It erros on optional properties
interface Foo {
prop?: number
}
// Error: Failed to generate a codec
I made a PR that fixes this (#10 ). Basically, prop?: number
is seen as a union of number
and undefined
, but undefined
(type flag 32768
) wasn't recognized by this lib.
We can close this