File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export const store = new Vuex.Store({
92
92
93
93
// Creating proxies.
94
94
const vxm = {
95
- user: createProxy ( UserStore ),
95
+ user: createProxy ( store , UserStore ),
96
96
}
97
97
```
98
98
@@ -260,4 +260,4 @@ export class UserStore extends createModule({ target: "nuxt" }) {
260
260
` ` `
261
261
262
262
## See Old API
263
- [Old API >](old-api-readme.md)
263
+ [Old API >](old-api-readme.md)
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ export interface ProxyWatchers {
70
70
deep : boolean ;
71
71
immediate : boolean ;
72
72
} ) : ( ) => void ;
73
- $subscribe ( mutationfield : string , callback : ( payload : any ) => void ) : void ;
74
- $subscribeAction ( actionField : string , callbackOrObj : SubScribeActionCallback | SubScribeActionObject ) : void ;
73
+ $subscribe ( mutationfield : string , callback : ( payload : any ) => void ) : ( ) => void ;
74
+ $subscribeAction ( actionField : string , callbackOrObj : SubScribeActionCallback | SubScribeActionObject ) : ( ) => void ;
75
75
}
76
76
declare type SubScribeActionCallback = ( payload : any ) => void ;
77
77
declare type SubScribeActionObject = {
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ export interface ProxyWatchers {
70
70
deep : boolean ;
71
71
immediate : boolean ;
72
72
} ) : ( ) => void ;
73
- $subscribe ( mutationfield : string , callback : ( payload : any ) => void ) : void ;
74
- $subscribeAction ( actionField : string , callbackOrObj : SubScribeActionCallback | SubScribeActionObject ) : void ;
73
+ $subscribe ( mutationfield : string , callback : ( payload : any ) => void ) : ( ) => void ;
74
+ $subscribeAction ( actionField : string , callbackOrObj : SubScribeActionCallback | SubScribeActionObject ) : ( ) => void ;
75
75
}
76
76
declare type SubScribeActionCallback = ( payload : any ) => void ;
77
77
declare type SubScribeActionObject = {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vuex-class-component" ,
3
- "version" : " 2.2.1 " ,
3
+ "version" : " 2.3.2 " ,
4
4
"description" : " \" A Type Safe Vuex Module or Store Using ES6 Classes and ES7 Decorators written in TypeScript.\" " ,
5
5
"main" : " dist/index.js" ,
6
6
"directories" : {
Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ export interface ProxyWatchers {
96
96
$subscribe (
97
97
mutationfield :string ,
98
98
callback :( payload :any ) => void ,
99
- ) :void
99
+ ) :( ) => void
100
100
101
- $subscribeAction ( actionField :string , callbackOrObj :SubScribeActionCallback | SubScribeActionObject ) :void
101
+ $subscribeAction ( actionField :string , callbackOrObj :SubScribeActionCallback | SubScribeActionObject ) :( ) => void
102
102
103
103
}
104
104
@@ -107,4 +107,4 @@ type SubScribeActionCallback = ( payload :any ) => void;
107
107
type SubScribeActionObject = {
108
108
before : ( payload :any ) => void ;
109
109
after : ( payload :any ) => void ;
110
- }
110
+ }
You can’t perform that action at this time.
0 commit comments