-
Notifications
You must be signed in to change notification settings - Fork 18
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
TS2742 type annotation necessary for basic usage #153
Comments
@djMax hey! I also have the same problem, try putting this inside of your
|
Also getting this behaviour- only when |
Having this issue too with using "NodeNext". Using Looking into this I found a similar issue in Vanilla Extract - vanilla-extract-css/vanilla-extract#739
Hacking the package to export the type does make the issue go away. E.g.
Now it shows the Sprinkles type for my Box component instead of 'any': Could adding |
* 153 - Export SprinklesFn type * Create red-tigers-enjoy.md --------- Co-authored-by: Rogin Farrer <[email protected]>
Merged in #153. Let me know if that helps. |
this bug is actually still occuring with TS 5.5 with |
Description
When converting from vanilla-extract/sprinkles to rainbow-sprinkles, Typescript 5.2 gets tripped up with a confusing error:
Expected Behaviour
Proper inferred typing.
Actual Behaviour
typescript build fails
Affected Version
0.17.0
Steps to Reproduce
Possibly the tsconfig?
Checklist
The text was updated successfully, but these errors were encountered: