aboutsummaryrefslogtreecommitdiff
path: root/src-vue/vuex-shim.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/vuex-shim.d.ts')
-rw-r--r--src-vue/vuex-shim.d.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src-vue/vuex-shim.d.ts b/src-vue/vuex-shim.d.ts
new file mode 100644
index 00000000..cebc5ce8
--- /dev/null
+++ b/src-vue/vuex-shim.d.ts
@@ -0,0 +1,13 @@
+import { ComponentCustomProperties } from 'vue'
+import { Store } from 'vuex'
+
+declare module '@vue/runtime-core' {
+ // Declare your own store states.
+ interface State {
+ count: number
+ }
+
+ interface ComponentCustomProperties {
+ $store: Store<State>
+ }
+}