Checks if a schema is optional (accepts undefined). Uses the public .type property which works in both zod/v4 and zod/v4/mini.
Checks if a schema is optional (accepts undefined). Uses the public .type property which works in both zod/v4 and zod/v4/mini.