Missing intellisense for variants
See original GitHub issueHey,
I tried following your guides to set up variants for my Text component, but it TypeScript refuses to acknowledge the keys under text in MyTheme.
I noticed that Text gets the prop type StyledProps<'text', never> & TextProps
Manually updating never to DripsyVariant<'text'> solves the issue, and gives me correct suggestions.
When looking at the source for createThemeComponent, then it seems like that is also the intention:
https://github.com/nandorojo/dripsy/blob/798c6819c01ce4203e585739235b37b7f5b7efe9/packages/core/src/css/create-themed-component.tsx#L20
https://github.com/nandorojo/dripsy/blob/798c6819c01ce4203e585739235b37b7f5b7efe9/packages/core/src/css/types.ts#L287-L290
Has it been built wrong?
I have dumped my files for a repro into a gist: https://gist.github.com/Jomik/faa0f1ca6c7f46ba179c3bdfb60b1d0c
Versions:
{
"dripsy": "^3.2.1",
"typescript": "~4.4.4"
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:31 (23 by maintainers)

Top Related StackOverflow Question
3.5.3should also fix this prop for components without athemeKey, such asView. Man, this was a tough one. all done though 🥳Hm weird, it’s working for me. Could you try reproducing on CodeSandbox maybe?
Do you also have
@dripsy/gradientinstalled? If so, make sure to update that too.