mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-06 12:27:45 +00:00
fix: Cross-platform FormSubmitEvent via Register
This commit is contained in:
@@ -8,6 +8,10 @@ import { createUseField, type UseField } from './useField'
|
||||
import { formContext } from './formContext'
|
||||
|
||||
declare module '@tanstack/form-core' {
|
||||
interface Register {
|
||||
FormSubmitEvent: React.FormEvent<HTMLFormElement>
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-shadow
|
||||
interface FormApi<TFormData> {
|
||||
Form: FormComponent
|
||||
|
||||
Reference in New Issue
Block a user