Creating a Schema with Explicit Undefined in Type Signature
Hi! I'm struggling with creating a Schema of the following type signature:
=> I want to be able to explicitly pass undefined to the decode function of this schema.
I tried this
but it creates a Schema of shape
and then I cannot explicitly pass
I also tried:
It works well for the property
Does anyone know how to build such Schema ? Thanks!
=> I want to be able to explicitly pass undefined to the decode function of this schema.
I tried this
but it creates a Schema of shape
and then I cannot explicitly pass
undefined to the decode method:I also tried:
It works well for the property
a but for b I will get an Option<string | undefined> as output, instead of Option<string>.Does anyone know how to build such Schema ? Thanks!
