react-app-store-manager 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Store.d.ts +0 -1
- package/dist/Store.js +0 -3
- package/dist/createStore.d.ts +1 -1
- package/dist/useStore.d.ts +1 -1
- package/package.json +1 -1
package/dist/Store.d.ts
CHANGED
@@ -21,6 +21,5 @@ export declare class Store<Value, Actions> implements StoreInterface<Value, Acti
|
|
21
21
|
action(callback: any): any;
|
22
22
|
subscribe(listener: ListenerInterface): void;
|
23
23
|
unsubscribe(listener: ListenerInterface): void;
|
24
|
-
__getContext(): React.Context<Value>;
|
25
24
|
}
|
26
25
|
export {};
|
package/dist/Store.js
CHANGED
@@ -29,9 +29,6 @@ var Store = /** @class */ (function () {
|
|
29
29
|
Store.prototype.unsubscribe = function (listener) {
|
30
30
|
this.listeners = this.listeners.filter(function (l) { return l !== listener; });
|
31
31
|
};
|
32
|
-
Store.prototype.__getContext = function () {
|
33
|
-
return this.context;
|
34
|
-
};
|
35
32
|
return Store;
|
36
33
|
}());
|
37
34
|
exports.Store = Store;
|
package/dist/createStore.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
import { StoreInterface } from "./Store";
|
2
|
-
export declare function createStore<V, A extends object | undefined>(value: any, actions: A): StoreInterface<V, A>;
|
2
|
+
export declare function createStore<V, A extends object | undefined = undefined>(value: any, actions: A): StoreInterface<V, A>;
|
package/dist/useStore.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
import { StoreInterface } from "./Store";
|
2
|
-
export declare function useStore<T>(store: StoreInterface<T,
|
2
|
+
export declare function useStore<T, A = undefined>(store: StoreInterface<T, A>): T;
|