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

[Button] Fix typing for type-attribute #15077

Merged
merged 1 commit into from
Mar 28, 2019
Merged

Conversation

karlbohlmark
Copy link
Contributor

@karlbohlmark karlbohlmark commented Mar 27, 2019

Narrow typing for the type attribute in Button and Fab to be compatible with latest typings for react.

Closes #15076

@mui-pr-bot
Copy link

No bundle size changes comparing be889d9...2e0ba6b

Generated by 🚫 dangerJS against 2e0ba6b

@eps1lon eps1lon added bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! typescript component: Fab The React component. labels Mar 27, 2019
@GitJacek

This comment has been minimized.

@skibickipawel

This comment has been minimized.

@fosfuan

This comment has been minimized.

@podolskip

This comment has been minimized.

@eps1lon eps1lon merged commit f036b5c into mui:next Mar 28, 2019
@eps1lon
Copy link
Member

eps1lon commented Mar 28, 2019

@karlbohlmark Thanks.

At the rest that felt like spamming this PR helps: Releases are usually every 1-2 weeks, PRs rarely get merged without double checking.

The problem surfaced because of a change in @types/react. To prevent the issue either pin @types/react to a previous version or use a fork of Button.d.ts with paths alias.

@oliviertassinari
Copy link
Member

oliviertassinari commented Mar 28, 2019

It will be released this weekend under v4.0.0-alpha.6.

@oliviertassinari
Copy link
Member

I think that we should backport this change to master and to a quick release. Anyone?

@oliviertassinari oliviertassinari removed the component: Fab The React component. label Mar 28, 2019
@GitJacek
Copy link

@karlbohlmark Thanks.

At the rest that felt like spamming this PR helps: Releases are usually every 1-2 weeks, PRs rarely get merged without double checking.

The problem surfaced because of a change in @types/react. To prevent the issue either pin @types/react to a previous version or use a fork of Button.d.ts with paths alias.

The problem is that '@types/react-dom' has '@types/react' as dependency, it install latest version, so when i downgrade '@types/react' I can't build my project anyway, because i get:
error TS2300: Duplicate identifier 'LibraryManagedAttributes'

oliviertassinari pushed a commit to oliviertassinari/material-ui that referenced this pull request Mar 28, 2019
oliviertassinari pushed a commit to oliviertassinari/material-ui that referenced this pull request Mar 28, 2019
@oliviertassinari
Copy link
Member

oliviertassinari commented Mar 28, 2019

I will cut a v3 release once #15096 is merged.

@oliviertassinari
Copy link
Member

Released as v3.9.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants