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 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;
@@ -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>;
@@ -1,2 +1,2 @@
1
1
  import { StoreInterface } from "./Store";
2
- export declare function useStore<T>(store: StoreInterface<T, any>): T;
2
+ export declare function useStore<T, A = undefined>(store: StoreInterface<T, A>): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-app-store-manager",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "tsc --declaration"