2018-12-17 02:57:34 +00:00
|
|
|
import Vue, {ComponentOptions} from "vue";
|
|
|
|
import {Store} from "vuex";
|
|
|
|
|
2018-12-16 23:29:44 +00:00
|
|
|
declare module '*.vue' {
|
|
|
|
export default Vue;
|
|
|
|
}
|
2018-12-17 02:57:34 +00:00
|
|
|
|
|
|
|
declare module 'vue/types/options' {
|
|
|
|
interface ComponentOptions<V extends Vue> {
|
|
|
|
$store?: Store<any>,
|
|
|
|
$options?: {
|
|
|
|
sockets?: {
|
|
|
|
[s: string]: (data: any) => void,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'vue/types/vue' {
|
|
|
|
interface Vue {
|
|
|
|
$store: Store<any>,
|
|
|
|
}
|
|
|
|
}
|