react-global-state-hooks 3.0.4 → 3.0.6
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.
|
@@ -4,13 +4,13 @@ import { GlobalStoreConfig } from './GlobalStore.types';
|
|
|
4
4
|
* Get an item from local storage using the config provided.
|
|
5
5
|
*/
|
|
6
6
|
export declare const getLocalStorageItem: <T = any, TState = any, TMetadata = any>({ config, }: {
|
|
7
|
-
config: GlobalStoreConfig<TState, TMetadata
|
|
7
|
+
config: GlobalStoreConfig<TState, TMetadata>;
|
|
8
8
|
}) => T;
|
|
9
9
|
/**
|
|
10
10
|
* @description
|
|
11
11
|
* Set an item to local storage using the config provided.
|
|
12
12
|
*/
|
|
13
13
|
export declare const setLocalStorageItem: <T, TState = any, TMetadata = any>({ item, config, }: {
|
|
14
|
-
config: GlobalStoreConfig<TState, TMetadata
|
|
14
|
+
config: GlobalStoreConfig<TState, TMetadata>;
|
|
15
15
|
item: T;
|
|
16
16
|
}) => void;
|
package/lib/src/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The intention is to extend the capabilities to specially web development.
|
|
4
4
|
* The original library is intended to be used just with react,
|
|
5
5
|
*/
|
|
6
|
-
export { clone, isNil, isNumber, isBoolean, isString, isDate, isRegex, isFunction, isPrimitive, formatFromStore, formatToStore, throwNoSubscribersWereAdded, createDerivate, createDerivateEmitter, shallowCompare, debounce, combineAsyncGettersEmitter, combineAsyncGetters, StateSetter, StateHook, AvoidNever, MetadataSetter, StateChanges, StoreTools, ActionCollectionConfig, ActionCollectionResult, UseHookConfig, UnsubscribeCallback, SubscribeCallbackConfig, SubscribeCallback, SubscriberCallback, StateGetter, Subscribe, CustomGlobalHookBuilderParams, SelectorCallback, SubscribeToEmitter, SubscriberParameters, SubscriptionCallback, SetStateCallback, } from 'react-hooks-global-states';
|
|
6
|
+
export { clone, isNil, isNumber, isBoolean, isString, isDate, isRegex, isFunction, isPrimitive, formatFromStore, formatToStore, throwNoSubscribersWereAdded, createDerivate, createDerivateEmitter, shallowCompare, debounce, combineAsyncGettersEmitter, combineAsyncGetters, StateSetter, StateHook, AvoidNever, MetadataSetter, StateChanges, StoreTools, ActionCollectionConfig, ActionCollectionResult, UseHookConfig, UnsubscribeCallback, SubscribeCallbackConfig, SubscribeCallback, SubscriberCallback, StateGetter, Subscribe, CustomGlobalHookBuilderParams, SelectorCallback, SubscribeToEmitter, SubscriberParameters, SubscriptionCallback, SetStateCallback, StateChangesParam, StateConfigCallbackParam, } from 'react-hooks-global-states';
|
|
7
7
|
export { LocalStorageConfig, GlobalStoreConfig, createStateConfig, CustomGlobalHookParams, } from './GlobalStore.types';
|
|
8
8
|
export { GlobalStore } from './GlobalStore';
|
|
9
9
|
export { GlobalStoreAbstract } from './GlobalStoreAbstract';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-global-state-hooks",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "This is a package to easily handling global-state across your react components No-redux, No-context.",
|
|
5
5
|
"main": "lib/bundle.js",
|
|
6
6
|
"types": "lib/src/index.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"react-test-renderer": "^17.0.1",
|
|
66
66
|
"ts-jest": "^26.4.4",
|
|
67
67
|
"ts-loader": "^9.4.2",
|
|
68
|
-
"typescript": "^
|
|
68
|
+
"typescript": "^5.3.3",
|
|
69
69
|
"webpack": "^5.76.3",
|
|
70
70
|
"webpack-cli": "^5.0.1"
|
|
71
71
|
},
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"react": ">=17.0.0"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"react-hooks-global-states": "^1.0.
|
|
76
|
+
"react-hooks-global-states": "^1.0.5"
|
|
77
77
|
}
|
|
78
78
|
}
|