Files
SnowLuma/.pnpm-store/v11/files/ac/6192747eb4730b0abc7d23d58d5019713eb144ba11ad1a82e0bed8a1e6a10526ee80b6bf6588c1a80283d21dca3bbb9f51ebf8c81aa3cb33de5b7ebc35ac4d
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

14 lines
675 B
Plaintext

import { ZodMapDef, ZodRecordDef, ZodTypeAny } from "zod/v3";
import { JsonSchema7Type } from "../parseTypes.js";
import { Refs } from "../Refs.js";
import { JsonSchema7EnumType } from "./enum.js";
import { JsonSchema7StringType } from "./string.js";
type JsonSchema7RecordPropertyNamesType = Omit<JsonSchema7StringType, "type"> | Omit<JsonSchema7EnumType, "type">;
export type JsonSchema7RecordType = {
type: "object";
additionalProperties?: JsonSchema7Type | true;
propertyNames?: JsonSchema7RecordPropertyNamesType;
};
export declare function parseRecordDef(def: ZodRecordDef<ZodTypeAny, ZodTypeAny> | ZodMapDef, refs: Refs): JsonSchema7RecordType;
export {};