Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Action } from '@ngrx/store';
export const LOG_ERROR = '[Logger] Log Error';
export const LOG_WARNING = '[Logger] Log Warning';
export const LOG_INFO = '[Logger] Log Info';
export class LogError implements Action {
readonly type = LOG_ERROR;
constructor(readonly payload: { message: string }) { }
}
export class LogWarning implements Action {
readonly type = LOG_WARNING;
constructor(readonly payload: { message: string }) { }
}
export class LogInfo implements Action {
readonly type = LOG_INFO;
constructor(readonly payload: { message: string }) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.