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

14 lines
No EOL
515 B
TypeScript

import { ZodNumberDef } from 'zod';
import { ErrorMessages } from "../errorMessages.js";
import { Refs } from "../Refs.js";
export type JsonSchema7NumberType = {
type: 'number' | 'integer';
minimum?: number;
exclusiveMinimum?: number;
maximum?: number;
exclusiveMaximum?: number;
multipleOf?: number;
errorMessage?: ErrorMessages<JsonSchema7NumberType>;
};
export declare function parseNumberDef(def: ZodNumberDef, refs: Refs): JsonSchema7NumberType;
//# sourceMappingURL=number.d.ts.map