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

formOptions.ts

9 lines290 Bytes

1import type { Validator } from './types'
2import type { FormOptions } from './FormApi'
3​
4export function formOptions<
5 TFormData,
6 TFormValidator extends Validator<TFormData, unknown> | undefined = undefined,
7>(defaultOpts?: FormOptions<TFormData, TFormValidator>) {
8 return defaultOpts
9}