UNPKG

@modular-forms/qwik

Version:

The modular and type-safe form library for Qwik

14 lines (13 loc) 461 B
import { type QRL } from '@builder.io/qwik'; import type { MaybeValue } from '../types'; type Value = MaybeValue<string | number>; /** * Creates a validation function that checks the value of an input for equality. * * @param requirement The value to be checked. * @param error The error message. * * @returns A validation function. */ export declare function value(requirement: string | number, error: string): QRL<(value: Value) => string>; export {};