@@ -3,18 +3,30 @@ import Vue = require("vue");
33type Dictionary < T > = { [ key : string ] : T } ;
44
55export function mapState ( map : string [ ] ) : Dictionary < ( ) => any > ;
6+ export function mapState ( namespace : string , map : string [ ] ) : Dictionary < ( ) => any > ;
67export function mapState ( map : Dictionary < string > ) : Dictionary < ( ) => any > ;
8+ export function mapState ( namespace : string , map : Dictionary < string > ) : Dictionary < ( ) => any > ;
79export function mapState < S > (
810 map : Dictionary < ( this : typeof Vue , state : S , getters : any ) => any >
911) : Dictionary < ( ) => any > ;
12+ export function mapState < S > (
13+ namespace : string ,
14+ map : Dictionary < ( this : typeof Vue , state : S , getters : any ) => any >
15+ ) : Dictionary < ( ) => any > ;
1016
1117type MutationMethod = ( ...args : any [ ] ) => void ;
1218export function mapMutations ( map : string [ ] ) : Dictionary < MutationMethod > ;
19+ export function mapMutations ( namespace : string , map : string [ ] ) : Dictionary < MutationMethod > ;
1320export function mapMutations ( map : Dictionary < string > ) : Dictionary < MutationMethod > ;
21+ export function mapMutations ( namespace : string , map : Dictionary < string > ) : Dictionary < MutationMethod > ;
1422
1523export function mapGetters ( map : string [ ] ) : Dictionary < ( ) => any > ;
24+ export function mapGetters ( namespace : string , map : string [ ] ) : Dictionary < ( ) => any > ;
1625export function mapGetters ( map : Dictionary < string > ) : Dictionary < ( ) => any > ;
26+ export function mapGetters ( namespace : string , map : Dictionary < string > ) : Dictionary < ( ) => any > ;
1727
1828type ActionMethod = ( ...args : any [ ] ) => Promise < any [ ] > ;
1929export function mapActions ( map : string [ ] ) : Dictionary < ActionMethod > ;
30+ export function mapActions ( namespace : string , map : string [ ] ) : Dictionary < ActionMethod > ;
2031export function mapActions ( map : Dictionary < string > ) : Dictionary < ActionMethod > ;
32+ export function mapActions ( namespace : string , map : Dictionary < string > ) : Dictionary < ActionMethod > ;
0 commit comments