@giveback007/util-lib 2.5.2 → 2.5.3

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.
@@ -3,6 +3,7 @@ export type Immutable<T> = {
3
3
  };
4
4
  export type Action<T extends string, P = undefined> = Readonly<P extends undefined ? {
5
5
  T: T;
6
+ P?: P;
6
7
  } : {
7
8
  T: T;
8
9
  P: P;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giveback007/util-lib",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Utility library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3,7 +3,7 @@ export type Immutable<T> = {
3
3
  };
4
4
 
5
5
  export type Action<T extends string, P = undefined> =
6
- Readonly<P extends undefined ? { T: T } : { T: T; P: P; }>;
6
+ Readonly<P extends undefined ? { T: T; P?: P; } : { T: T; P: P; }>;
7
7
 
8
8
  export type stateSubFct<S> = (s: S, prev: S | null) => any;
9
9