UNPKG

@modular-forms/qwik

Version:

The modular and type-safe form library for Qwik

14 lines (13 loc) 479 B
import { type QRL } from '@builder.io/qwik'; import type { MaybeValue } from '../types'; type Value = MaybeValue<string | number | Date>; /** * Creates a validation functions that validates the range of a string, number or date. * * @param requirement The maximum range. * @param error The error message. * * @returns A validation function. */ export declare function maxRange(requirement: string | number | Date, error: string): QRL<(value: Value) => string>; export {};