This commit is contained in:
crusader 2018-03-18 20:55:37 +09:00
parent 272284e425
commit dc1d6d4d61

View File

@ -1,11 +1,13 @@
import { Action } from '@ngrx/store';
export const NOTIFICATION_ACTION_TYPE_PREFIX = '@@NOTIFICATION';
export interface NotificationAction extends Action {
payload?: any;
}
export function notificationActionEnum(method: string): string {
return `[@@NOTIFICATION] ${method}`;
return `[${NOTIFICATION_ACTION_TYPE_PREFIX}] ${method}`;
}
export function notificationAction(method: string, params: any): Action {