UNPKG

@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

11 lines (10 loc) 525 B
import { InputTypeType } from '../types/inputType'; import { InternalErrorType } from '../types/internalErrors'; type ReturnType = { internalErrors: string[]; checkInternalValidations: (value: string) => void; addInternalError: (internalErrorType: InternalErrorType) => void; removeInternalError: (internalErrorType: InternalErrorType) => void; }; export declare const useInternalValidations: (type?: InputTypeType, minLength?: number, onInternalErrors?: (errors: string[]) => void) => ReturnType; export {};