@mantine/form
Version:
Mantine form management library
9 lines (8 loc) • 342 B
TypeScript
import type { SyncReactNode } from '../types';
interface IsUrlOptions {
protocols?: string[];
allowLocalhost?: boolean;
}
export declare function isUrl(error?: SyncReactNode): (value: unknown) => SyncReactNode;
export declare function isUrl(options: IsUrlOptions, error?: SyncReactNode): (value: unknown) => SyncReactNode;
export {};