Function: isZodV4()
@providerprotocol/ai / utils / isZodV4
Function: isZodV4()
Section titled “Function: isZodV4()”isZodV4(
schema):schema is ZodV4Like
Defined in: src/utils/zod.ts:58
Checks if a Zod schema is v4 or later.
Parameters
Section titled “Parameters”schema
Section titled “schema”Zod schema to check
Returns
Section titled “Returns”schema is ZodV4Like
True if the schema is Zod v4+