Shim sham fix the jam

This commit is contained in:
Dane Everitt 2018-12-29 16:34:22 -08:00
parent ce949ba920
commit e6502a3713
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 21 additions and 21 deletions

View File

@ -0,0 +1,19 @@
import Vue from "vue";
import {Store} from "vuex";
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>,
}
}

View File

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