Skip to content

Commit b2165e1

Browse files
author
tiagoroldao
committed
Merge branch 'master' into proxy-fixes
2 parents 78bc7c0 + 170bd19 commit b2165e1

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const store = new Vuex.Store({
9292

9393
// Creating proxies.
9494
const vxm = {
95-
user: createProxy( UserStore ),
95+
user: createProxy( store, UserStore ),
9696
}
9797
```
9898

@@ -260,4 +260,4 @@ export class UserStore extends createModule({ target: "nuxt" }) {
260260
```
261261
262262
## See Old API
263-
[Old API >](old-api-readme.md)
263+
[Old API >](old-api-readme.md)

dist/interfaces.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export interface ProxyWatchers {
7070
deep: boolean;
7171
immediate: boolean;
7272
}): () => 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;
7575
}
7676
declare type SubScribeActionCallback = (payload: any) => void;
7777
declare type SubScribeActionObject = {

js/interfaces.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export interface ProxyWatchers {
7070
deep: boolean;
7171
immediate: boolean;
7272
}): () => 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;
7575
}
7676
declare type SubScribeActionCallback = (payload: any) => void;
7777
declare type SubScribeActionObject = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuex-class-component",
3-
"version": "2.2.1",
3+
"version": "2.3.2",
44
"description": "\"A Type Safe Vuex Module or Store Using ES6 Classes and ES7 Decorators written in TypeScript.\"",
55
"main": "dist/index.js",
66
"directories": {

src/interfaces.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ export interface ProxyWatchers {
9696
$subscribe (
9797
mutationfield :string,
9898
callback :( payload :any ) => void,
99-
) :void
99+
) :() => void
100100

101-
$subscribeAction ( actionField :string, callbackOrObj :SubScribeActionCallback | SubScribeActionObject ) :void
101+
$subscribeAction ( actionField :string, callbackOrObj :SubScribeActionCallback | SubScribeActionObject ) :() => void
102102

103103
}
104104

@@ -107,4 +107,4 @@ type SubScribeActionCallback = ( payload :any ) => void;
107107
type SubScribeActionObject = {
108108
before: ( payload :any ) => void;
109109
after: ( payload :any ) => void;
110-
}
110+
}

0 commit comments

Comments
 (0)