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

16 lines
No EOL
640 B
TypeScript

import { ZodDateDef } from 'zod';
import { Refs } from "../Refs.js";
import { ErrorMessages } from "../errorMessages.js";
import { JsonSchema7NumberType } from "./number.js";
import { DateStrategy } from "../Options.js";
export type JsonSchema7DateType = {
type: 'integer' | 'string';
format: 'unix-time' | 'date-time' | 'date';
minimum?: number;
maximum?: number;
errorMessage?: ErrorMessages<JsonSchema7NumberType>;
} | {
anyOf: JsonSchema7DateType[];
};
export declare function parseDateDef(def: ZodDateDef, refs: Refs, overrideDateStrategy?: DateStrategy): JsonSchema7DateType;
//# sourceMappingURL=date.d.ts.map