@mic-rexjs/usecases-react 1.7.2 → 1.7.4

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,3 +1,3 @@
1
- import { Reducers } from '@mic-rexjs/usecases';
1
+ import { ReducerMap } from '@mic-rexjs/usecases';
2
2
  import { ShouldCacheReducerCallback } from './types';
3
- export declare const cacheReducerCalls: <T extends Reducers>(reducers: T, shouldCache: ShouldCacheReducerCallback) => T;
3
+ export declare const cacheReducerCalls: <T extends ReducerMap<import("@mic-rexjs/usecases").Reducer<unknown>>>(reducers: T, shouldCache: ShouldCacheReducerCallback) => T;
@@ -1,4 +1,4 @@
1
- import { Reducer, Reducers } from '@mic-rexjs/usecases';
1
+ import { Reducer, ReducerMap } from '@mic-rexjs/usecases';
2
2
  export interface ReducerCallCache<T extends Reducer> {
3
3
  parameters: Parameters<T>;
4
4
  returnValue: ReturnType<T>;
@@ -6,6 +6,6 @@ export interface ReducerCallCache<T extends Reducer> {
6
6
  export interface ShouldCacheReducerCallback {
7
7
  (): boolean;
8
8
  }
9
- export type ReducerCallCacheMap<T extends Reducers> = {
9
+ export type ReducerCallCacheMap<T extends ReducerMap> = {
10
10
  [K in keyof T]?: ReducerCallCache<T[K]>;
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mic-rexjs/usecases-react",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "React-based solution for use usecases of Clean Architecture",
5
5
  "private": false,
6
6
  "keywords": [
@@ -48,7 +48,7 @@
48
48
  "@commitlint/cli": "^17.6.6",
49
49
  "@commitlint/config-angular": "^17.6.6",
50
50
  "@jest/globals": "^29.5.0",
51
- "@mic-rexjs/usecases": "^1.4.22",
51
+ "@mic-rexjs/usecases": "^1.4.25",
52
52
  "@testing-library/react": "^14.0.0",
53
53
  "@types/node": "^20.4.2",
54
54
  "@types/react": "^18.2.14",