FieldApiOf
The TanStack field a widget receives, with its value type fixed.
TanStack Form's FieldApi with the value type fixed and every other type parameter open.
This is the type of the field a widget receives: the real field of a form, with its
state, handleChange, handleBlur and the rest of TanStack's API.
Type parameters
| Name | Description |
|---|---|
TValue | The type of the value the field holds. |
Example
const isEmpty = (field: FieldApiOf<string>): boolean => field.state.value === ''