UNPKG

unika-components

Version:

Unika Vue3 components library

21 lines (20 loc) 490 B
export declare const Validators: { text: { pattern: RegExp; message: string; }; name: { pattern: RegExp; message: string; }; phone: { pattern: RegExp; message: string; }; number: { pattern: RegExp; message: string; }; }; export declare function validateInput(value: string, type: keyof typeof Validators): string | true; export type ValidatorType = keyof typeof Validators;