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

fixed example for styled components 6 types #943

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

fabb
Copy link
Contributor

@fabb fabb commented Sep 21, 2023

this fixes a compilation error in the example. the generic parameter must be set on the attrs function so its parameter's function parameter gets the correct type and props are accessible without type error.

@quantizor quantizor merged commit e27a8ee into styled-components:main Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants