UNPKG

ai

Version:

AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.

44 lines (41 loc) 654 B
import { array, boolean, custom, discriminatedUnion, enum as enumType, instanceof as instanceOf, lazy, literal, looseObject, never, null as nullType, number, object, record, string, union, unknown, } from 'zod/v4'; // Import individual Zod factories so bundlers can tree-shake the full `z` // namespace, which also re-exports every locale. export const z = { array, boolean, custom, discriminatedUnion, enum: enumType, instanceof: instanceOf, lazy, literal, looseObject, never, null: nullType, number, object, record, string, union, unknown, }; export type { ZodType } from 'zod/v4';