Skip to content

Function: isZodV4()

@providerprotocol/ai


@providerprotocol/ai / utils / isZodV4

isZodV4(schema): schema is ZodV4Like

Defined in: src/utils/zod.ts:58

Checks if a Zod schema is v4 or later.

ZodLike

Zod schema to check

schema is ZodV4Like

True if the schema is Zod v4+