File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1- import Vue , { ComponentOptions } from "vue" ;
2- import { Store } from "vuex" ;
3-
41declare 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}
You can’t perform that action at this time.
0 commit comments