@undermuz/react-json-form
Version:
Generate JSON-based forms with react
8 lines (5 loc) • 439 B
TypeScript
import { RefObject, SyntheticEvent } from 'react';
import { D as DefType, d as IJsonFormRef, b as TypeValue, S as SubmitErrors } from './types-4491bbaa.js';
import '@undermuz/use-form';
declare const useSubmit: <T extends DefType = DefType>(ref: RefObject<IJsonFormRef<T> | null>, onSubmit: (values: TypeValue<T>, errors: SubmitErrors, isValid: boolean) => void) => (event: SyntheticEvent<Element, Event>) => void;
export { useSubmit };