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
See this frustrating red line under ListSubheader?
Context
I ran into this trying to make the subheader similar to my list items.
It works well, but I wondered why was typescript complaining. I checked the docs that say:
If you encounter a component that rejects its component props in TypeScript please open an issue.
So here it is.
Your Environment 🌎
Tech
Version
Material-UI
latest
React
16.9.0
IDE
VSCode
TypeScript
3.6.3
The text was updated successfully, but these errors were encountered:
"No overload matches this call."
Current Behavior 😯
Raise a typescript error.
Expected Behavior 🤔
Accept the following props without complaining:
Steps to Reproduce 🕹
https://codesandbox.io/s/create-react-app-with-typescript-c7fcp
Steps:
Context
I ran into this trying to make the subheader similar to my list items.
It works well, but I wondered why was typescript complaining. I checked the docs that say:
So here it is.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: