CreateStore types not work for array

const [store, setStore] = createStore([{
lotNumber: '',
}]);
const [store, setStore] = createStore([{
lotNumber: '',
}]);
This is giving typescript error in v1.7.5
3 Replies
JCM
JCM3y ago
What is the error message? I don't see an error on my side when using your code snippet.
PureSoul
PureSoulOP3y ago
can you tried with solid 1.7.5?
JCM
JCM3y ago
Yes, 1.7.5 should not be problematic. What is the error message you see?

Did you find this page helpful?