You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue in the code is due to the InputProps interface extending React.InputHTMLAttributes<HTMLInputElement> without adding any new members.
This is flagged by the ESLint rule @typescript-eslint/no-empty-interface, which indicates that an interface declaring no members is equivalent to its supertype. Essentially, InputProps does not add any value beyond what React.InputHTMLAttributes<HTMLInputElement> already provides.
Failed to compile.
./src/components/ui/input.tsx
5:18 Error: An interface declaring no members is equivalent to its supertype. @typescript-eslint/no-empty-interface
System Info
No relevant information.
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues
The text was updated successfully, but these errors were encountered:
Describe the bug
The issue in the code is due to the InputProps interface extending
React.InputHTMLAttributes<HTMLInputElement>
without adding any new members.This is flagged by the ESLint rule
@typescript-eslint/no-empty-interface
, which indicates that an interface declaring no members is equivalent to its supertype. Essentially, InputProps does not add any value beyond whatReact.InputHTMLAttributes<HTMLInputElement>
already provides.Proposed fix on #4082
Affected component/components
Input
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: