UNPKG

@versatiledatakit/shared

Version:

Versatile Data Kit Shared library enables reusability of shared features like: NgRx Redux, Error Handlers, Utils, Generic Components, etc.

37 lines (36 loc) 1.34 kB
import { Actions } from '@ngrx/effects'; import { TaurusObject } from '../../../../common'; import { ComponentService } from '../../../component'; import * as i0 from "@angular/core"; /** * ** Base class for all NgRx Effects. */ export declare abstract class TaurusBaseEffects extends TaurusObject { protected readonly actions$: Actions; protected readonly componentService: ComponentService; /** * @inheritDoc */ static readonly CLASS_NAME: string; /** * @inheritDoc */ static readonly PUBLIC_NAME: string; /** * ** Constructor. * * @protected */ protected constructor(actions$: Actions, componentService: ComponentService, className?: string); /** * ** Implement this method and register all error codes that could be recorded from Class effects. * * - Bound error codes to error-codes repository when keys are tasks name and value is all available error codes for that particular task. * - Implement in subclasses and invoke in Constructor to register Effects Error Codes. * * @protected */ protected abstract registerEffectsErrorCodes(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TaurusBaseEffects, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<TaurusBaseEffects, never, never, {}, {}, never>; }