This commit is contained in:
David Arranz 2026-04-04 00:09:05 +02:00
parent 7c2a0b8a51
commit a7a4768a0f
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import { type FieldPath, type FieldValues, useFormContext } from "react-hook-for
import { FormFieldLabel } from "./form-field-label.tsx";
import type { NativeTextareaProps } from "./types.ts";
type TextAreaFieldProps<TFormValues extends FieldValues> = NativeTextareaProps & {
type TextAreaFieldProps<TFormValues extends FieldValues> = Omit<NativeTextareaProps, "name"> & {
name: FieldPath<TFormValues>;
label?: string;

View File

@ -14,7 +14,7 @@ import { FormFieldLabel } from "./form-field-label.tsx";
import { type TextFieldTypePreset, getInputPresetProps } from "./text-field-presets.tsx";
import type { NativeInputProps } from "./types.ts";
type TextFieldProps<TFormValues extends FieldValues> = NativeInputProps & {
type TextFieldProps<TFormValues extends FieldValues> = Omit<NativeInputProps, "name"> & {
name: FieldPath<TFormValues>;
label?: string;