From 727c51fc331c965b614ba7849cc1bb0c6a2537f5 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 9 Nov 2022 10:32:50 +0100
Subject: [PATCH] OZG-2966 OZG-3098 move generic ngrx/actions stuff to
 tech-util

---
 goofy-client/libs/tech-shared/src/index.ts            |  1 +
 goofy-client/libs/tech-shared/src/lib/ngrx/actions.ts | 10 ++++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 goofy-client/libs/tech-shared/src/lib/ngrx/actions.ts

diff --git a/goofy-client/libs/tech-shared/src/index.ts b/goofy-client/libs/tech-shared/src/index.ts
index 7e0f749f00..bfa6274e63 100644
--- a/goofy-client/libs/tech-shared/src/index.ts
+++ b/goofy-client/libs/tech-shared/src/index.ts
@@ -5,6 +5,7 @@ export * from './lib/error/error.handler';
 export * from './lib/error/error.util';
 export * from './lib/http.util';
 export * from './lib/message-code';
+export * from './lib/ngrx/actions';
 export * from './lib/pipe/convert-for-data-test.pipe';
 export * from './lib/pipe/enum-to-label.pipe';
 export * from './lib/pipe/file-size.pipe';
diff --git a/goofy-client/libs/tech-shared/src/lib/ngrx/actions.ts b/goofy-client/libs/tech-shared/src/lib/ngrx/actions.ts
new file mode 100644
index 0000000000..d62166ae13
--- /dev/null
+++ b/goofy-client/libs/tech-shared/src/lib/ngrx/actions.ts
@@ -0,0 +1,10 @@
+import { ActionCreator } from '@ngrx/store';
+import { TypedAction } from '@ngrx/store/src/models';
+import { ApiError } from '../tech.model';
+
+export interface TypedActionCreatorWithProps<T> extends ActionCreator<string, (props: T) => T & TypedAction<string>> { }
+export interface TypedActionCreator extends ActionCreator<string, () => TypedAction<string>> { }
+
+export interface ApiErrorAction {
+	apiError: ApiError
+}
\ No newline at end of file
-- 
GitLab