@uxf/core 11.72.3 → 11.78.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/core",
3
- "version": "11.72.3",
3
+ "version": "11.78.0",
4
4
  "description": "UXF Core",
5
5
  "author": "Petr Vejvoda <vejvoda@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/core#readme",
package/types/index.d.ts CHANGED
@@ -17,3 +17,11 @@ export type OnUploadFileHandler = (file: File, options?: UploadOptions) => Promi
17
17
  export interface FileUploadProps {
18
18
  onUploadFile: OnUploadFileHandler;
19
19
  }
20
+ export type TypedReducerActions<Actions> = {
21
+ [K in keyof Actions]: Actions[K] extends never ? {
22
+ type: K;
23
+ } : {
24
+ type: K;
25
+ payload: Actions[K];
26
+ };
27
+ }[keyof Actions];