Browse Source

chore: import requirements for global typings for `this.$store` in README.md (#1733)

To work global typings for `this.$store` need to import `Store` and `ComponentCustomProperties`.
Ramnath Shenoy 5 years ago
parent
commit
bf1de488a3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      README.md

+ 3 - 0
README.md

@@ -70,6 +70,9 @@ Place the following code in your project to allow `this.$store` to be typed corr
 ```ts
 // vuex-shim.d.ts
 
+import { Store } from "vuex";
+import { ComponentCustomProperties } from "vue";
+
 declare module "@vue/runtime-core" {
   // Declare your own store states.
   interface State {