UNPKG

vuex-tstore

Version:

Provides a low-overhead TypeScript wrapper around Vuex that can trigger compilation errors and IntelliSense tips.

19 lines (15 loc) 345 B
/** * Extends interfaces in Vue.js */ import Vue, { ComponentOptions } from "vue"; import { TStore } from "../src/index"; declare module "vue/types/vue" { interface Vue { $tstore: TStore<any, any, any>; } } declare module "vue/types/options" { interface ComponentOptions<V extends Vue> { tstore?: TStore<any, any, any>; } }