diff --git a/goofy-client/libs/tech-shared/src/index.ts b/goofy-client/libs/tech-shared/src/index.ts index 7e0f749f00c0b9bc0c3f6c8895db70bec44535fb..bfa6274e63e4ad4ed451f74e9a36ca0051f6d5fe 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 0000000000000000000000000000000000000000..d62166ae13cff1e24a2787f5d78e0b0c5634185a --- /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