Problems related to Code hints in vscode

problem description

write the following code in index.js

   

so how to describe the interface type in JsDoc or is there any other way to solve the problem suggested by this code


Hello, everyone. I am the questioner. After debugging, I found that the above problem may not be the problem hinted by the code.
below is my test code, and I find that the return value of createStore () is not of Store interface type but of any type

.


store.dispatch(action)


clipboard.png

clipboard.png

guess that there is a problem with the store returned by createStore ().

is there any expert who is familiar with redux to help solve the confusion? thank you very much

Menu