react-global-state-hooks 15.0.11 → 15.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-global-state-hooks",
3
- "version": "15.0.11",
3
+ "version": "15.0.12",
4
4
  "description": "This is a package to easily handling global-state across your react components",
5
5
  "main": "./bundle.js",
6
6
  "types": "./index.d.ts",
package/types.d.ts CHANGED
@@ -82,7 +82,7 @@ export type LocalStorageConfig<State, Metadata extends BaseMetadata> = {
82
82
  /**
83
83
  * @description Optional selector to extract a subset of the state for storage.
84
84
  */
85
- selector?: (state: State) => Partial<State>;
85
+ selector?: (state: State) => any;
86
86
  };
87
87
  /**
88
88
  * @description Structure of the item stored in localStorage