Cleanup socketio stuff for typescript
This commit is contained in:
parent
3ad4422a94
commit
5e4ca8ef83
22 changed files with 246 additions and 210 deletions
21
resources/assets/scripts/vue-shims.d.ts
vendored
21
resources/assets/scripts/vue-shims.d.ts
vendored
|
@ -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>,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue