@@ -3,18 +3,30 @@ import Vue = require("vue");
3
3
type Dictionary < T > = { [ key : string ] : T } ;
4
4
5
5
export function mapState ( map : string [ ] ) : Dictionary < ( ) => any > ;
6
+ export function mapState ( namespace : string , map : string [ ] ) : Dictionary < ( ) => any > ;
6
7
export function mapState ( map : Dictionary < string > ) : Dictionary < ( ) => any > ;
8
+ export function mapState ( namespace : string , map : Dictionary < string > ) : Dictionary < ( ) => any > ;
7
9
export function mapState < S > (
8
10
map : Dictionary < ( this : typeof Vue , state : S , getters : any ) => any >
9
11
) : Dictionary < ( ) => any > ;
12
+ export function mapState < S > (
13
+ namespace : string ,
14
+ map : Dictionary < ( this : typeof Vue , state : S , getters : any ) => any >
15
+ ) : Dictionary < ( ) => any > ;
10
16
11
17
type MutationMethod = ( ...args : any [ ] ) => void ;
12
18
export function mapMutations ( map : string [ ] ) : Dictionary < MutationMethod > ;
19
+ export function mapMutations ( namespace : string , map : string [ ] ) : Dictionary < MutationMethod > ;
13
20
export function mapMutations ( map : Dictionary < string > ) : Dictionary < MutationMethod > ;
21
+ export function mapMutations ( namespace : string , map : Dictionary < string > ) : Dictionary < MutationMethod > ;
14
22
15
23
export function mapGetters ( map : string [ ] ) : Dictionary < ( ) => any > ;
24
+ export function mapGetters ( namespace : string , map : string [ ] ) : Dictionary < ( ) => any > ;
16
25
export function mapGetters ( map : Dictionary < string > ) : Dictionary < ( ) => any > ;
26
+ export function mapGetters ( namespace : string , map : Dictionary < string > ) : Dictionary < ( ) => any > ;
17
27
18
28
type ActionMethod = ( ...args : any [ ] ) => Promise < any [ ] > ;
19
29
export function mapActions ( map : string [ ] ) : Dictionary < ActionMethod > ;
30
+ export function mapActions ( namespace : string , map : string [ ] ) : Dictionary < ActionMethod > ;
20
31
export function mapActions ( map : Dictionary < string > ) : Dictionary < ActionMethod > ;
32
+ export function mapActions ( namespace : string , map : Dictionary < string > ) : Dictionary < ActionMethod > ;
0 commit comments