diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-10-02 22:28:27 +0200 |
---|---|---|
committer | Remy Raes <raes.remy@gmail.com> | 2022-10-02 22:28:27 +0200 |
commit | 22a7bd16852498a95f9733e228e126a644b9c3ed (patch) | |
tree | d46655565553a58c358a7ed62080d6a2202cf60f /src-vue/vuex-shim.d.ts | |
parent | 8b1acb0af3a31260ac3357ede22ba737c1a96f86 (diff) | |
download | FlightCore-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.ts | 13 |
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> + } +} |