11 lines
593 B
Plaintext
11 lines
593 B
Plaintext
import { ZodSchema } from "zod/v3";
|
|
import { Options, Targets } from "./Options.js";
|
|
import { JsonSchema7Type } from "./parseTypes.js";
|
|
declare const zodToJsonSchema: <Target extends Targets = "jsonSchema7">(schema: ZodSchema<any>, options?: string | Partial<Options<Target>> | undefined) => (Target extends "jsonSchema7" ? JsonSchema7Type : object) & {
|
|
$schema?: string | undefined;
|
|
definitions?: {
|
|
[key: string]: Target extends "jsonSchema7" ? JsonSchema7Type : Target extends "jsonSchema2019-09" ? JsonSchema7Type : object;
|
|
} | undefined;
|
|
};
|
|
export { zodToJsonSchema };
|