react-hooks-global-states 12.0.0-beta.0 → 12.0.0
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.
- package/createGlobalState.d.ts +1 -1
- package/package.json +1 -1
package/createGlobalState.d.ts
CHANGED
|
@@ -159,5 +159,5 @@ export declare const createGlobalState: CreateGlobalState;
|
|
|
159
159
|
* type CounterActions = InferActionsType<typeof useCounter>;
|
|
160
160
|
* ```
|
|
161
161
|
*/
|
|
162
|
-
export type InferActionsType<Hook extends StateHook<any, any,
|
|
162
|
+
export type InferActionsType<Hook extends StateHook<any, any, any>> = ReturnType<Hook['actions']>['1'];
|
|
163
163
|
export default createGlobalState;
|
package/package.json
CHANGED