Skip to content

Commit e6502a3

Browse files
committed
Shim sham fix the jam
1 parent ce949ba commit e6502a3

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Vue from "vue";
2+
import {Store} from "vuex";
3+
4+
declare module 'vue/types/options' {
5+
interface ComponentOptions<V extends Vue> {
6+
$store?: Store<any>,
7+
$options?: {
8+
sockets?: {
9+
[s: string]: (data: any) => void,
10+
}
11+
},
12+
}
13+
}
14+
15+
declare module 'vue/types/vue' {
16+
interface Vue {
17+
$store: Store<any>,
18+
}
19+
}
Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
import Vue, {ComponentOptions} from "vue";
2-
import {Store} from "vuex";
3-
41
declare module '*.vue' {
5-
export default Vue;
6-
}
7-
8-
declare module 'vue/types/options' {
9-
interface ComponentOptions<V extends Vue> {
10-
$store?: Store<any>,
11-
$options?: {
12-
sockets?: {
13-
[s: string]: (data: any) => void,
14-
}
15-
},
16-
}
17-
}
18-
19-
declare module 'vue/types/vue' {
20-
interface Vue {
21-
$store: Store<any>,
22-
}
2+
import Vue from 'vue'
3+
export default Vue
234
}

0 commit comments

Comments
 (0)