14 lines
515 B
TypeScript
14 lines
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
|