@vtaits/react-hook-form-schema
Version:
Integration of react-hook-form and @vtaits/form-schema
16 lines (11 loc) • 668 B
TypeScript
import { b as FieldType } from './types-XL-2FxMV.js';
import { M as MultiSelectSchema, S as SelectSchema } from './schema-BG9s7MAB.js';
import * as react from 'react';
import '@vtaits/form-schema';
import 'react-hook-form';
import '@vtaits/form-schema/fields/select';
import './types-7iZNsJ6X.js';
declare const multiSelect: FieldType<MultiSelectSchema>;
declare const select: FieldType<SelectSchema>;
declare function useOptionsCache<OptionType>(options: readonly OptionType[], getOptionValue: (option: OptionType) => string | number): react.RefObject<Record<string, OptionType>>;
export { MultiSelectSchema, SelectSchema, multiSelect, select, useOptionsCache };