type FieldInputProps<TValue> = [
TValue
] extends [
boolean | null
] ? FieldCheckboxProps : FieldTextProps; The props of a field's element: FieldCheckboxProps for a boolean field, otherwise FieldTextProps.
FieldInputProps type aliastype FieldInputProps<TValue> = [
TValue
] extends [
boolean | null
] ? FieldCheckboxProps : FieldTextProps; The props of a field's element: FieldCheckboxProps for a boolean field, otherwise FieldTextProps.