Overview / getZodDefaults
getZodDefaults()
getZodDefaults<
T
>(schema
,discriminant
?):T
["_output"
] |undefined
Retrieves the default values for a given Zod schema.
Type Parameters
Type Parameter |
---|
T extends ZodTypeAny |
Parameters
Parameter | Type | Description |
---|---|---|
schema | T | The Zod schema for which to retrieve the default values. |
discriminant ? | string | The discriminant value for discriminated unions. |
Returns
T
["_output"
] | undefined