UNPKG

@modular-forms/qwik

Version:

The modular and type-safe form library for Qwik

14 lines (13 loc) 543 B
import { type NoSerialize, type QRL } from '@builder.io/qwik'; import type { MaybeValue } from '../types'; type Value = MaybeValue<string | string[] | number[] | NoSerialize<Blob>[] | NoSerialize<File>[]>; /** * Creates a validation functions that validates the length of a string or array. * * @param requirement The minimum string or array length. * @param error The error message. * * @returns A validation function. */ export declare function minLength(requirement: number, error: string): QRL<(value: Value) => string>; export {};