UNPKG

uno-react

Version:

Common functions, and hooks for React.

3 lines (2 loc) 331 B
export type BasicTypes = string | number | boolean | Record<string, unknown>; export declare const useValidation: (validation: (propName: string, prop: BasicTypes, model: Record<string, BasicTypes>) => string, value: Record<string, BasicTypes>, debounce?: number, disabledHasChange?: boolean) => [boolean, Record<string, string>];