diff --git a/CHANGELOG.md b/CHANGELOG.md index 5df97ecd..ccda8e22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 4.60.1 ( May 28th, 2024) + +### Fixed + +- Issue with useField user props not omitting "'onChange' | 'onBlur' | 'onFocus' | 'value' | 'defaultValue' | 'required'" + ## 4.60.0 ( May 9th, 2024) ### Fixed diff --git a/index.d.ts b/index.d.ts index 37f9ad1c..7b11f5ee 100644 --- a/index.d.ts +++ b/index.d.ts @@ -370,7 +370,10 @@ export function useField( ): { fieldState: FieldState; fieldApi: FieldApi; - userProps: UserProps; + userProps: Omit< + UserProps, + 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'defaultValue' | 'required' + >; informed: { onChange(event: React.SyntheticEvent): void; onBlur(event: React.SyntheticEvent): void;