Files
AIEC_Skills/requirement-web/node_modules/zod/v4/classic/from-json-schema.d.cts
闫旭隆 e0aff02e31 20260109
2026-01-09 13:36:01 +08:00

11 lines
533 B
TypeScript

import type * as JSONSchema from "../core/json-schema.cjs";
import type { ZodType } from "./schemas.cjs";
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 {};