agsamantha/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts

16 lines
525 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
import { ZodMapDef } from 'zod';
import { JsonSchema7Type } from "../parseDef.js";
import { Refs } from "../Refs.js";
import { JsonSchema7RecordType } from "./record.js";
export type JsonSchema7MapType = {
type: 'array';
maxItems: 125;
items: {
type: 'array';
items: [JsonSchema7Type, JsonSchema7Type];
minItems: 2;
maxItems: 2;
};
};
export declare function parseMapDef(def: ZodMapDef, refs: Refs): JsonSchema7MapType | JsonSchema7RecordType;
//# sourceMappingURL=map.d.ts.map