Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

ReactAppFormApi.public.tsx

16 lines580 Bytes

1import type { FormErrorTypes } from '@tanstack/form-core'
2import type { ReactFormApi } from '../ReactForm/formApiTypes.public'
3import type { FunctionComponent, ReactNode } from 'react'
4import type { AnyReactFormComponentMap } from './componentMap.public'
5​
6export type AppFormComponent = FunctionComponent<{
7 children: Exclude<ReactNode, Promise<any>>
8}>
9​
10export type ReactAppFormApi<
11 TFormData,
12 TFormErrorTypes extends FormErrorTypes,
13 TComponents extends AnyReactFormComponentMap,
14> = ReactFormApi<TFormData, TFormErrorTypes, TComponents> & {
15 AppForm: AppFormComponent