This commit is contained in:
闫旭隆
2026-01-09 13:36:01 +08:00
parent 202d1cb5ba
commit e0aff02e31
374 changed files with 42970 additions and 11539 deletions

View File

@ -0,0 +1,10 @@
import type * as JSONSchema from "../core/json-schema.js";
import type { ZodType } from "./schemas.js";
type JSONSchemaVersion = "draft-2020-12" | "draft-7" | "draft-4" | "openapi-3.0";
interface FromJSONSchemaParams {
defaultTarget?: JSONSchemaVersion;
}
/**
* Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
export declare function fromJSONSchema(schema: JSONSchema.JSONSchema | boolean, params?: FromJSONSchemaParams): ZodType;
export {};