aboutsummaryrefslogtreecommitdiff
path: root/src-vue/vuex-shim.d.ts
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-10-02 22:28:27 +0200
committerRemy Raes <raes.remy@gmail.com>2022-10-02 22:28:27 +0200
commit22a7bd16852498a95f9733e228e126a644b9c3ed (patch)
treed46655565553a58c358a7ed62080d6a2202cf60f /src-vue/vuex-shim.d.ts
parent8b1acb0af3a31260ac3357ede22ba737c1a96f86 (diff)
downloadFlightCore-22a7bd16852498a95f9733e228e126a644b9c3ed.tar.gz
FlightCore-22a7bd16852498a95f9733e228e126a644b9c3ed.zip
refactor: type issues
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>
+ }
+}