Skip to content
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

(5,18): Interface 'ButtonProps' incorrectly extends interface 'Pick<ButtonBaseProps, "disabled" | "media" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "color" | "children" | "name" | "action" | "defaultChecked" | "defaultValue" | ... 264 more ... | "TouchRippleProps"> & StyledComponentProps<...> & { ...; }'. Type 'ButtonProps' is not assignable to type 'Pick<ButtonBaseProps, "disabled" | "media" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "color" | "children" | "name" | "action" | "defaultChecked" | "defaultValue" | ... 264 more ... | "TouchRippleProps">'. Types of property 'type' are incompatible. Type 'string | undefined' is not assignable to type '"button" | "reset" | "submit" | undefined'. Type 'string' is not assignable to type '"button" | "reset" | "submit" | undefined'. #15095

Closed
kgaurav0212 opened this issue Mar 28, 2019 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@kgaurav0212
Copy link

(5,18): Interface 'ButtonProps' incorrectly extends interface 'Pick<ButtonBaseProps, "disabled" | "media" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "color" | "children" | "name" | "action" | "defaultChecked" | "defaultValue" | ... 264 more ... | "TouchRippleProps"> & StyledComponentProps<...> & { ...; }'.
Type 'ButtonProps' is not assignable to type 'Pick<ButtonBaseProps, "disabled" | "media" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "color" | "children" | "name" | "action" | "defaultChecked" | "defaultValue" | ... 264 more ... | "TouchRippleProps">'.
Types of property 'type' are incompatible.
Type 'string | undefined' is not assignable to type '"button" | "reset" | "submit" | undefined'.
Type 'string' is not assignable to type '"button" | "reset" | "submit" | undefined'.

@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Mar 28, 2019
@kgaurav0212
Copy link
Author

How to fix this?

@oliviertassinari
Copy link
Member

It's a duplicate of #15076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants