Skip to content

Instantly share code, notes, and snippets.

@kmaraz
Last active April 10, 2018 21:54
Show Gist options
  • Save kmaraz/5d6027f559234869977bea5543889878 to your computer and use it in GitHub Desktop.
Save kmaraz/5d6027f559234869977bea5543889878 to your computer and use it in GitHub Desktop.
export const DELETE_EVENT = '[Events] DELETE_EVENT';
export const SELECT_EVENT = '[Events] SELECT_EVENT';
export const RESET = '[Events] RESET';
export class DeleteEvent implements Action {
readonly type = DELETE_EVENT;
constructor(public payload: PayloadEvent) { }
}
export class SelectEvent implements Action {
readonly type = SELECT_EVENT;
constructor(public payload: PayloadEvent) { }
}
export class Reset implements Action {
readonly type = RESET;
}
export interface PayloadEvent {
eventUuid: string;
}
export type All
= DeleteEvent
| SelectEvent
| Reset;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment