Function: isZodSchema()
@providerprotocol/ai / utils / isZodSchema
Function: isZodSchema()
Section titled “Function: isZodSchema()”isZodSchema(
value):value is ZodLike
Defined in: src/utils/zod.ts:42
Checks if a value is a Zod schema (v3 or v4).
Parameters
Section titled “Parameters”unknown
Value to check
Returns
Section titled “Returns”value is ZodLike
True if the value appears to be a Zod schema