@nish1896/rhf-mui-components
Version:
A suite of 20+ reusable Material UI components for React Hook Form to minimize your time and effort in creating and styling forms
4 lines (3 loc) • 364 B
TypeScript
import type { StringOrNumber, StrNumObjOption, KeyValueOption } from '../types';
export declare function validateArray(formElementName: string, options: StrNumObjOption[], labelKey?: string, valueKey?: string): void;
export declare function isKeyValueOption(option: StringOrNumber | KeyValueOption, labelKey?: string, valueKey?: string): option is KeyValueOption;