@@ -5,6 +5,7 @@ type Dictionary<T> = { [key: string]: T };
5
5
type Computed = ( ) => any ;
6
6
type MutationMethod = ( ...args : any [ ] ) => void ;
7
7
type ActionMethod = ( ...args : any [ ] ) => Promise < any > ;
8
+ type CustomVue = Vue & Dictionary < any >
8
9
9
10
interface Mapper < R > {
10
11
( map : string [ ] ) : Dictionary < R > ;
@@ -17,26 +18,26 @@ interface MapperWithNamespace<R> {
17
18
}
18
19
19
20
interface FunctionMapper < F , R > {
20
- ( map : Dictionary < ( this : typeof Vue , fn : F , ...args : any [ ] ) => any > ) : Dictionary < R > ;
21
+ ( map : Dictionary < ( this : CustomVue , fn : F , ...args : any [ ] ) => any > ) : Dictionary < R > ;
21
22
}
22
23
23
24
interface FunctionMapperWithNamespace < F , R > {
24
25
(
25
26
namespace : string ,
26
- map : Dictionary < ( this : typeof Vue , fn : F , ...args : any [ ] ) => any >
27
+ map : Dictionary < ( this : CustomVue , fn : F , ...args : any [ ] ) => any >
27
28
) : Dictionary < R > ;
28
29
}
29
30
30
31
interface MapperForState {
31
32
< S > (
32
- map : Dictionary < ( this : typeof Vue , state : S , getters : any ) => any >
33
+ map : Dictionary < ( this : CustomVue , state : S , getters : any ) => any >
33
34
) : Dictionary < Computed > ;
34
35
}
35
36
36
37
interface MapperForStateWithNamespace {
37
38
< S > (
38
39
namespace : string ,
39
- map : Dictionary < ( this : typeof Vue , state : S , getters : any ) => any >
40
+ map : Dictionary < ( this : CustomVue , state : S , getters : any ) => any >
40
41
) : Dictionary < Computed > ;
41
42
}
42
43
0 commit comments