-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Popover] Fix wrong getContentAnchorEl definition #12562
[Popover] Fix wrong getContentAnchorEl definition #12562
Conversation
While this is indeed correct I would rather change the warning message. This change could theoretically be applied to most optional props which would add way to much noise in my opinion. You could also pass |
@eps1lon Interesting concern, what do you think of What would you suggest as the best path forward? |
From my experience people are not that interested in semantic versioning considering typings. While this would be a breaking change at compile time the runtime would be unaffected. Since you just bumped your typescript version to the next major (#12409) I think it's ok to define a consistent typing considering optional types and include that change in the next minor. |
That is completely fine by me. I just have to be a little pedantic here: The warning should also mention |
92c75e9
to
b8434ca
Compare
@duvet86 It's a great first pull request on Material-UI 👌🏻. Thank you for giving it a shot! |
I agree with @eps1lon, I would rather change all the TS definitions to exclude |
At least, the warning message was updated :). |
Update typescript definition.
Closes #12539