@@ -28,7 +28,7 @@ export declare class Store<S> {
28
28
29
29
hotUpdate ( options : {
30
30
actions ?: ActionTree < S , S > ;
31
- mutations ?: MutationTree < S , S > ;
31
+ mutations ?: MutationTree < S > ;
32
32
getters ?: GetterTree < S , S > ;
33
33
modules ?: ModuleTree < S > ;
34
34
} ) : void ;
@@ -81,7 +81,7 @@ export interface StoreOptions<S> {
81
81
state ?: S ;
82
82
getters ?: GetterTree < S , S > ;
83
83
actions ?: ActionTree < S , S > ;
84
- mutations ?: MutationTree < S , S > ;
84
+ mutations ?: MutationTree < S > ;
85
85
modules ?: ModuleTree < S > ;
86
86
plugins ?: Plugin < S > [ ] ;
87
87
strict ?: boolean ;
@@ -95,15 +95,15 @@ export interface ActionObject<S, R> {
95
95
96
96
export type Getter < S , R > = ( state : S , getters : any , rootState : R , rootGetters : any ) => any ;
97
97
export type Action < S , R > = ActionHandler < S , R > | ActionObject < S , R > ;
98
- export type Mutation < S , R > = ( this : Store < R > , state : S , payload : any ) => any ;
98
+ export type Mutation < S > = ( state : S , payload : any ) => any ;
99
99
export type Plugin < S > = ( store : Store < S > ) => any ;
100
100
101
101
export interface Module < S , R > {
102
102
namespaced ?: boolean ;
103
103
state ?: S | ( ( ) => S ) ;
104
104
getters ?: GetterTree < S , R > ;
105
105
actions ?: ActionTree < S , R > ;
106
- mutations ?: MutationTree < S , R > ;
106
+ mutations ?: MutationTree < S > ;
107
107
modules ?: ModuleTree < R > ;
108
108
}
109
109
@@ -119,8 +119,8 @@ export interface ActionTree<S, R> {
119
119
[ key : string ] : Action < S , R > ;
120
120
}
121
121
122
- export interface MutationTree < S , R > {
123
- [ key : string ] : Mutation < S , R > ;
122
+ export interface MutationTree < S > {
123
+ [ key : string ] : Mutation < S > ;
124
124
}
125
125
126
126
export interface ModuleTree < R > {
0 commit comments