zodToJsonSchema.d.ts 609 B

1234567891011
  1. import { ZodSchema } from 'zod';
  2. import { Options, Targets } from "./Options.js";
  3. import { JsonSchema7Type } from "./parseDef.js";
  4. declare const zodToJsonSchema: <Target extends Targets = "jsonSchema7">(schema: ZodSchema<any>, options?: string | Partial<Options<Target>> | undefined) => (Target extends "jsonSchema7" ? JsonSchema7Type : object) & {
  5. $schema?: string;
  6. definitions?: {
  7. [key: string]: Target extends "jsonSchema7" ? JsonSchema7Type : Target extends "jsonSchema2019-09" ? JsonSchema7Type : object;
  8. };
  9. };
  10. export { zodToJsonSchema };
  11. //# sourceMappingURL=zodToJsonSchema.d.ts.map