Unwraps an optional schema to get the inner schema. If the schema is not optional, returns it unchanged. Uses the public .def.innerType property which works in both zod/v4 and zod/v4/mini.
Unwraps an optional schema to get the inner schema. If the schema is not optional, returns it unchanged. Uses the public .def.innerType property which works in both zod/v4 and zod/v4/mini.