agsamantha/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts
2024-10-02 15:15:21 -05:00

13 lines
No EOL
511 B
TypeScript

import { ZodArrayDef } from 'zod';
import { ErrorMessages } from "../errorMessages.js";
import { JsonSchema7Type } from "../parseDef.js";
import { Refs } from "../Refs.js";
export type JsonSchema7ArrayType = {
type: 'array';
items?: JsonSchema7Type | undefined;
minItems?: number;
maxItems?: number;
errorMessages?: ErrorMessages<JsonSchema7ArrayType, 'items'>;
};
export declare function parseArrayDef(def: ZodArrayDef, refs: Refs): JsonSchema7ArrayType;
//# sourceMappingURL=array.d.ts.map