react-global-state-hooks 10.1.1 → 10.1.2

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.
@@ -1 +1 @@
1
- export { type Context, type ContextProvider, type ContextHook, type CreateContext, createContext, default, } from 'react-hooks-global-states/createContext';
1
+ export { type Context, type ContextProvider, type ContextHook, type CreateContext, type InferContextType, createContext, default, } from 'react-hooks-global-states/createContext';
@@ -1,4 +1,5 @@
1
1
  import { StateHook, StateSetter, BaseMetadata, ActionCollectionConfig, ActionCollectionResult, GlobalStoreCallbacks } from 'react-hooks-global-states/types';
2
+ export type { InferActionsType } from 'react-hooks-global-states/createGlobalState';
2
3
  import { LocalStorageConfig } from './types';
3
4
  export interface CreateGlobalState {
4
5
  <State>(state: State): StateHook<State, StateSetter<State>, BaseMetadata>;
package/index.d.ts CHANGED
@@ -8,11 +8,11 @@ export { uniqueId } from './uniqueId';
8
8
  export { throwWrongKeyOnActionCollectionConfig } from './throwWrongKeyOnActionCollectionConfig';
9
9
  export { isRecord } from './isRecord';
10
10
  export { useStableState } from './useStableState';
11
- export { type Context, type ContextProvider, type ContextHook, type CreateContext, createContext, } from './createContext';
11
+ export { type Context, type ContextProvider, type ContextHook, type CreateContext, type InferContextType, createContext, } from './createContext';
12
12
  export { type LocalStorageConfig } from './types';
13
13
  export { GlobalStore } from './GlobalStore';
14
14
  export { GlobalStoreAbstract } from './GlobalStoreAbstract';
15
- export { CreateGlobalState, createGlobalState } from './createGlobalState';
15
+ export { CreateGlobalState, createGlobalState, type InferActionsType } from './createGlobalState';
16
16
  export { createCustomGlobalState, CustomCreateGlobalState } from './createCustomGlobalState';
17
17
  export { getLocalStorageItem } from './getLocalStorageItem';
18
18
  export { setLocalStorageItem } from './setLocalStorageItem';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-global-state-hooks",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "description": "This is a package to easily handling global-state across your react components No-redux, No-context.",
5
5
  "main": "./bundle.js",
6
6
  "types": "./index.d.ts",
@@ -161,6 +161,6 @@
161
161
  "react": ">=18.0.0"
162
162
  },
163
163
  "dependencies": {
164
- "react-hooks-global-states": "^10.0.1"
164
+ "react-hooks-global-states": "^10.0.2"
165
165
  }
166
166
  }