UNPKG

fastify-type-provider-zod

Version:

Zod Type Provider for Fastify@5

10 lines (9 loc) 520 B
import { z } from "zod/v4"; declare const deleteInvalidProperties: (schema: z.core.JSONSchema.BaseSchema) => Omit<z.core.JSONSchema.BaseSchema, "id" | "$schema">; export declare const zodSchemaToJson: (zodSchema: z.ZodType, registry: z.core.$ZodRegistry<{ id?: string; }>, io: "input" | "output") => ReturnType<typeof deleteInvalidProperties>; export declare const zodRegistryToJson: (registry: z.core.$ZodRegistry<{ id?: string; }>, io: "input" | "output") => Record<string, z.core.JSONSchema.BaseSchema>; export {};