Skip to content

Instantly share code, notes, and snippets.

@kobvel
Last active October 5, 2017 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kobvel/a05cf8ac2069d2f12fef0d8df32d8e7a to your computer and use it in GitHub Desktop.
Save kobvel/a05cf8ac2069d2f12fef0d8df32d8e7a to your computer and use it in GitHub Desktop.
import { Action } from '@ngrx/store';
export interface IProfileActions {
PROFILE_DATA_UPDATED: string;
}
export const ActionTypes: IProfileActions = {
PROFILE_DATA_UPDATED: 'Profile Data Updated',
};
export class UpdateAction implements Action {
type = ActionTypes.PROFILE_DATA_UPDATED;
constructor(public payload: IProfileData) { }
}
export type Actions = UpdateAction;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment