aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/vuex-shim.d.ts
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-10-02 22:35:14 +0200
committerRemy Raes <raes.remy@gmail.com>2022-10-02 22:35:14 +0200
commit7a5ce8683993d056b68b52bfb9b37d09b7e71d2b (patch)
tree1c2177e33eecaf49abebff70cd1b674cebdbe06b /src-vue/src/vuex-shim.d.ts
parent22a7bd16852498a95f9733e228e126a644b9c3ed (diff)
downloadFlightCore-7a5ce8683993d056b68b52bfb9b37d09b7e71d2b.tar.gz
FlightCore-7a5ce8683993d056b68b52bfb9b37d09b7e71d2b.zip
fix: store is now typed
Diffstat (limited to 'src-vue/src/vuex-shim.d.ts')
-rw-r--r--src-vue/src/vuex-shim.d.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src-vue/src/vuex-shim.d.ts b/src-vue/src/vuex-shim.d.ts
new file mode 100644
index 00000000..1429115b
--- /dev/null
+++ b/src-vue/src/vuex-shim.d.ts
@@ -0,0 +1,8 @@
+import { ComponentCustomProperties } from 'vue'
+import { Store } from 'vuex'
+
+declare module '@vue/runtime-core' {
+ interface ComponentCustomProperties {
+ $store: Store<State>
+ }
+}