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

[TextField] Fix ClassKey inference for outlined and filled variants #13060

Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Oct 1, 2018

Closes #12999

Good thing this was achievable without generics. Type inference for callbacks still works with discriminated unions it seems.

As originally mentioned in #12637 I added a typescript test file for TextField only. components.spec.tsx is becoming to big. At some point this should be split up completely.

@eps1lon eps1lon force-pushed the fix/core/TextField/variant-union branch from 332ef75 to 1af41ea Compare October 1, 2018 16:20
@eps1lon eps1lon added component: text field This is the name of the generic UI component, not the React module! typescript labels Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field 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.

2 participants