Transform Struct Schema Values to Option Wrapped Values

Given some Struct schema I want to transform it to the same schema but every value is wrapped with Option.

I see something like this in optional but unfortunately it is not available in partial

optionalWith(schema: Schema<A, I, R>, { as: "Option" })
Was this page helpful?