diff --git a/web/src/shims-vue.d.ts b/web/src/shims-vue.d.ts index 2b97bd9..6ad95a7 100644 --- a/web/src/shims-vue.d.ts +++ b/web/src/shims-vue.d.ts @@ -1,5 +1,5 @@ declare module '*.vue' { - import type { DefineComponent } from 'vue' - const component: DefineComponent<{}, {}, any> - export default component + import type {DefineComponent} from 'vue' + const component: DefineComponent<{}, {}, any> + export default component } diff --git a/web/src/slims-vuex.d.ts b/web/src/slims-vuex.d.ts new file mode 100644 index 0000000..b68c7fd --- /dev/null +++ b/web/src/slims-vuex.d.ts @@ -0,0 +1,7 @@ +import { Store } from '@/store';// path to store file + +declare module '@vue/runtime-core' { + interface ComponentCustomProperties { + $store: Store; + } +}