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

fix(styled): add default type for Extra to fix Intellisense in JS #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GertSallaerts
Copy link

When I use the styled function in a JavaScript file instead of a TypeScript file as shown below, Intellisense breaks in VSCode because the Extra type gets evaluated to undefined. Adding this default type fixes that and shouldn't have any negative impact on TypeScript users as far as I can tell.

styled(MyComponent)({
    fontSize: 12
});
Before After
image image

Copy link

vercel bot commented May 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dripsy ❌ Failed (Inspect) May 15, 2024 8:40am

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.

1 participant