| 15 | * The global instance API for FormKit in React applications. |
| 16 | */ |
| 17 | export interface FormKitReactPlugin { |
| 18 | get: (id: string) => FormKitNode | undefined |
| 19 | setLocale: (locale: string) => void |
| 20 | setErrors: ( |
| 21 | formId: string, |
| 22 | errors: string[] | Record<string, string | string[]>, |
| 23 | inputErrors?: string[] | Record<string, string | string[]> |
| 24 | ) => void |
| 25 | clearErrors: (formId: string) => void |
| 26 | submit: (formId: string) => void |
| 27 | reset: (formId: string, resetTo?: unknown) => void |
| 28 | options: FormKitOptions |
| 29 | rootConfig: FormKitRootConfig |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * React context for FormKit options. |
nothing calls this directly
no outgoing calls
no test coverage detected