Skip to content

Commit bf1de48

Browse files
authored
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`.
1 parent 20772e9 commit bf1de48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ Place the following code in your project to allow `this.$store` to be typed corr
7070
```ts
7171
// vuex-shim.d.ts
7272

73+
import { Store } from "vuex";
74+
import { ComponentCustomProperties } from "vue";
75+
7376
declare module "@vue/runtime-core" {
7477
// Declare your own store states.
7578
interface State {

0 commit comments

Comments
 (0)