nandorojo / dripsy

🍷 Responsive, unstyled UI primitives for React Native + Web.
https://dripsy.xyz
MIT License
1.98k stars 77 forks source link

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

Open GertSallaerts opened 1 month ago

GertSallaerts commented 1 month ago

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
vercel[bot] commented 1 month ago

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