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

14 lines
No EOL
510 B
TypeScript

import { ZodTupleDef, ZodTupleItems, ZodTypeAny } from 'zod';
import { JsonSchema7Type } from "../parseDef.js";
import { Refs } from "../Refs.js";
export type JsonSchema7TupleType = {
type: 'array';
minItems: number;
items: JsonSchema7Type[];
} & ({
maxItems: number;
} | {
additionalItems?: JsonSchema7Type | undefined;
});
export declare function parseTupleDef(def: ZodTupleDef<ZodTupleItems | [], ZodTypeAny | null>, refs: Refs): JsonSchema7TupleType;
//# sourceMappingURL=tuple.d.ts.map