Returns a getter function for the default value of a Zod schema, if one is defined.
Supports both Zod v3 and v4 schemas. If the schema has a default value,
the returned function will return that value when called. If no default is defined,
returns undefined.
Returns a getter function for the default value of a Zod schema, if one is defined. Supports both Zod v3 and v4 schemas. If the schema has a default value, the returned function will return that value when called. If no default is defined, returns undefined.