Replies: 1 comment
-
There might be something we can do with types.. but not really my area of specialty. The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, let me start by saying that I really like SolidJs :)
I tried to create a store while using typescript and I have an issue with inference.
When trying to use
setStore
with produce. The first argument of the callback I pass to produce is treated as unknown by typescript.I wanted to know if there is any better way to deal with that other than specifying the parameter type explicitly every time I use
setStore
.This is my code:
Beta Was this translation helpful? Give feedback.
All reactions