Argument of type 'string' is not assignable to parameter of type 'never'.
When using setState in a provider I get this error since the new update, is there any way to fix it ?
Argument of type 'string' is not assignable to parameter of type 'never'.
8 Replies
What is the type of StoreState?
I don't seem to be able to reproduce the issue 🤔 https://playground.solidjs.com/anonymous/6b9a5fd8-a0ec-42c0-a49c-a4c67f90c525
huh
so it might come from my ts config ?
what version of solid is the playground in ?
here is the declaration of setState for version 1.6.9
iirc it was changed so that
readonly
properties aren't settable by setStore
since those are most commonly a result of using getter properties which cause a runtime error if you try to set themoh alright removing readonly worked, thanku 😄