Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/tools / / isZodV4Schema
Function: isZodV4Schema()
ts
function isZodV4Schema(value): value is ZodV4Like;Defined in: packages/tools/src/schema/to-json-schema.ts:76
true when value is a Zod v4 schema instance. v4 instances carry a versioned _zod internals bag (they also carry _def, so this check must run before the v3 one).
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
value is ZodV4Like