hookstate
hookstate copied to clipboard
Creating a global object using hookstate, but unable to find the property when using it.
please try restarting your TS server. If it does not help, I need a reproducer
please try restarting your TS server. If it does not help, I need a reproducer
It's just that there is no type hinting in TS, but it doesn't affect the usage.
I want to achieve the effect of TypeScript type hinting. I tried it, and if I add type checking for basic types like number and boolean, it works fine. However, when the type is an object or 'any', it prompts that the property does not exist on type 'State<IData, {}>'.