Transforming a nullable string into a potentially undefined string
I’m trying to transform
I tried this:
But it chokes on
So I tried a union
Which works, however any downstream errors result in a bloated stack:
Firstly, am I transforming the schemas correctly? and if so, is there a way to suppress the messaging about nulls and undefined?
Thanks
string | undefined | null => string | undefinedI tried this:
But it chokes on
S.optional which is not a Schema but a PropertySignatureSo I tried a union
Which works, however any downstream errors result in a bloated stack:
Firstly, am I transforming the schemas correctly? and if so, is there a way to suppress the messaging about nulls and undefined?
Thanks
