react-hooks-global-states 14.0.1 → 14.0.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,5 +1,5 @@
1
1
  import React, { type PropsWithChildren, Context as ReactContext } from 'react';
2
- import type { BaseMetadata, GlobalStoreCallbacks, UseHookOptions, AnyFunction, StoreTools as StoreToolsBase, ReadonlyStateApi, SelectHook, ObservableFragment, StateApi, StoreTools } from './types';
2
+ import type { BaseMetadata, GlobalStoreCallbacks, UseHookOptions, AnyFunction, StoreTools as StoreToolsBase, ReadonlyStateApi, SelectHook, ObservableFragment, StateApi } from './types';
3
3
  /**
4
4
  * @description Resulting type of the action collection configuration
5
5
  */
@@ -85,7 +85,7 @@ export type ContextProviderExtensions<State, StateMutator, Metadata extends Base
85
85
  /**
86
86
  * @description Full context instance
87
87
  */
88
- context: StoreTools<State, StateMutator extends AnyFunction ? null : StateMutator, Metadata>) => void;
88
+ context: ContextStoreTools<State, StateMutator extends AnyFunction ? null : StateMutator, Metadata>) => void;
89
89
  }) => {
90
90
  /**
91
91
  * Provider for the context
@@ -103,7 +103,7 @@ export type ContextProviderExtensions<State, StateMutator, Metadata extends Base
103
103
  /**
104
104
  * @description Current context value
105
105
  */
106
- current: StoreTools<State, StateMutator extends AnyFunction ? null : StateMutator, Metadata>;
106
+ current: ContextStoreTools<State, StateMutator extends AnyFunction ? null : StateMutator, Metadata>;
107
107
  };
108
108
  };
109
109
  };
@@ -124,7 +124,7 @@ export type ContextProvider<State, StateMutator, Metadata extends BaseMetadata>
124
124
  /**
125
125
  * @description Full context instance
126
126
  */
127
- context: StoreTools<State, StateMutator extends AnyFunction ? null : StateMutator, Metadata>) => void;
127
+ context: ContextStoreTools<State, StateMutator extends AnyFunction ? null : StateMutator, Metadata>) => void;
128
128
  }>> & ContextProviderExtensions<State, StateMutator, Metadata>;
129
129
  /**
130
130
  * @description Represents a hook that returns a readonly state.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-hooks-global-states",
3
- "version": "14.0.1",
3
+ "version": "14.0.2",
4
4
  "description": "This is a package to easily handling global-state across your react-components using hooks.",
5
5
  "main": "./bundle.js",
6
6
  "types": "./index.d.ts",