Files
SnowLuma/.pnpm-store/v11/files/6c/1be9963eea479b7f89f75a75229d3b9b511b5f93a15642cf67f6cc39c142db4d6da394617bddcb3a6a71b9cc13e418ebf83c5eaa43b9f0b51a4df10f9ada15
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

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 };