openai
Version:
The official TypeScript library for the OpenAI API
16 lines • 548 B
TypeScript
import type { ZodMapDef } from 'zod/v3';
import type { JsonSchema7Type } from "../parseDef.js";
import type { Refs } from "../Refs.js";
import type { 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