@modular-forms/qwik
Version:
The modular and type-safe form library for Qwik
13 lines (12 loc) • 348 B
TypeScript
import { type QRL } from '@builder.io/qwik';
import type { MaybeValue } from '../types';
type Value = MaybeValue<string>;
/**
* Creates a validation functions that validates a URL.
*
* @param error The error message.
*
* @returns A validation function.
*/
export declare function url(error: string): QRL<(value: Value) => string>;
export {};