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

14 lines
510 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
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