Closed Dan-True closed 6 years ago
Assuming by "I can't see any way to access $store or the property in my components", means that the autocomplete/type-hints are not working. (+ maybe the compiler warns/errors?). Please be more specific if this is not the case.
To why TypeScript is unable to detect .$store
, it is set dynamically:
I believe TypeScript does not detect this? Anyway, you probably need to give TypeScript some hint with a .d.ts file.
Hi.
I can import this in typescript by making my own module definition, but I can't see any way to access $store or the property in my components?