浏览代码

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 年之前
父节点
当前提交
bf1de488a3
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 {