Cleanup socketio stuff for typescript

This commit is contained in:
Dane Everitt
2018-12-16 18:57:34 -08:00
parent 3ad4422a94
commit 5e4ca8ef83
22 changed files with 246 additions and 210 deletions

View File

@@ -1,4 +1,23 @@
import Vue, {ComponentOptions} from "vue";
import {Store} from "vuex";
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}
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>,
}
}