Zod Aide lets you clone and “unwrap” your Zod types. This means that it will
remove any wrappers such as optional, default, and nullable from the Zod
type, allowing you to get the base type. Here’s a sample usage:
In the above example, the textOptional type was cloned and unwrapped using the
clonedZodType and coreZTA functions from Zod Aide. The clonedZodType
function clones the original Zod type, and the coreZTA function unwraps it,
removing the optional wrapper. The ta.assert checks that the original Zod
type is optional, and the unwrapped type is not.