-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui][typescript][InputBase] Fix correct type of InputBaseComponentProps
#41165
Conversation
Netlify deploy previewhttps://deploy-preview-41165--material-ui.netlify.app/ Bundle size report |
It's unclear why we should merge this: DefinitelyTyped/DefinitelyTyped#43985 (why should it be fixed in Material UI and not somewhere else?) |
enterkeyhint
type to `InputBaseComponentPr…InputBaseComponentProps
@oliviertassinari thank you and sorry for taking the wrong route to resolve this issue before. |
@DiegoAndai Could you review this PR? The type |
InputBaseComponentProps
InputBaseComponentProps
Hey @ZeeshanTamboli, thanks for tagging me and keeping an overview of current initiatives. Indeed, the @dev-natalya is using |
@DiegoAndai let me please rephrase you:
|
@dev-natalya this is my reasoning: There are two types of users here:
Option 1, we merge this, then:
Option 2, we deprecate (which we're doing anyway):
In both options, users have to eventually migrate, but in option 2, we avoid breaking users' implementations and instead incentivize migrating. That's why I'm leaning toward not merging, unless migrating to the updated APIs is not an option, that's why I asked if using What do you think? |
@DiegoAndai I appreciate the explanation; I think the common standard in libraries is:
If you follow a different set of standards, please close the PR.
The only users who might see a typings error after this PR is merged are:
|
We follow that standard as well. But I'm making an exception because:
So:
Is not something we follow. We will, in most cases, merge types bugfixes. But this case is a rare exception due to the circumstances I described above. |
I believe we can close this based on the discussion above. |
Added missing types to
InputBaseComponentProps
by extending fromReact.InputHTMLAttributes
instead ofReact.HTMLAttributes
.Here's a link to
React.InputHTMLAttributes
from@types/react
.