UNPKG

@duplojs/zod-accelerator

Version:

[![NPM version](https://img.shields.io/npm/v/@duplojs/zod-accelerator)](https://www.npmjs.com/package/@duplojs/zod-accelerator)

47 lines (46 loc) 1.34 kB
import type * as zod from "zod"; import { ZodAccelerator } from "../accelerator"; import type { ZodAcceleratorContent } from "../content"; export declare class ZodNumberAccelerator extends ZodAccelerator { get support(): typeof zod.ZodNumber; makeAcceleratorContent(zodSchema: zod.ZodNumber, zac: ZodAcceleratorContent): ZodAcceleratorContent; static contentPart: { coerce: () => string; typeof: () => { if: string; message: string; }; min: ({ value, inclusive }: { value: number; inclusive: boolean; }) => { if: string; message: string; }; max: ({ value, inclusive }: { value: number; inclusive: boolean; }) => { if: string; message: string; }; int: () => { if: string; message: string; }; multipleOf: ({ value }: { value: number; }) => { if: string; message: string; ctx: { duploj$floatSafeRemainder: typeof ZodNumberAccelerator.floatSafeRemainder; }; }; finite: () => { if: string; message: string; }; }; private static floatSafeRemainder; }