@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
17 lines (16 loc) • 419 B
TypeScript
export interface IRegex {
[key: string]: string | ((value: string) => boolean);
}
export interface IRegexCountry {
[key: string]: IRegex | string;
}
export type ValidationsType = {
country?: string;
regex?: IRegex | IRegexCountry;
};
export interface IValidationsProvider {
value: ValidationsType;
}
export interface IUseValidations {
validationValue: (key: string, value: string) => boolean;
}