UNPKG

315 BTypeScriptView Raw
1/**
2 * Extends interfaces in Vue.js
3 */
4
5import Vue, { ComponentOptions } from "vue";
6import { Store } from "./index";
7
8declare module "vue/types/options" {
9 interface ComponentOptions<V extends Vue> {
10 store?: Store<any>;
11 }
12}
13
14declare module "vue/types/vue" {
15 interface Vue {
16 $store: Store<any>;
17 }
18}