react-app-store-manager 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Store.d.ts +2 -2
- package/dist/Store.js +1 -1
- package/package.json +1 -1
package/dist/Store.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface StoreInterface<Value, Action> {
|
|
6
6
|
context: Context<Value>;
|
7
7
|
value: Value;
|
8
8
|
update(store: (store: Value) => Value): void;
|
9
|
-
action(actions: (action: Action) => any):
|
9
|
+
action(actions: (action: Action) => any): any;
|
10
10
|
subscribe(listener: ListenerInterface): void;
|
11
11
|
unsubscribe(listener: ListenerInterface): void;
|
12
12
|
}
|
@@ -17,7 +17,7 @@ export declare class Store<Value, Action> implements StoreInterface<Value, Actio
|
|
17
17
|
private listeners;
|
18
18
|
constructor(value: Value, actions?: Action);
|
19
19
|
update(callback: any): void;
|
20
|
-
action(callback: any):
|
20
|
+
action(callback: any): any;
|
21
21
|
subscribe(listener: ListenerInterface): void;
|
22
22
|
unsubscribe(listener: ListenerInterface): void;
|
23
23
|
}
|
package/dist/Store.js
CHANGED