UNPKG

ng-commander

Version:

Command pattern for Angular applications

16 lines (15 loc) 360 B
import Command from './command.interface'; export declare enum CommandEventType { START = "start", SUCCESS = "success", FAIL = "fail", RESTART = "restart", DEAD = "dead" } export interface CommandEvent { type: CommandEventType; timestamp: Date; command: Command; data?: any; } export type CommandEventSignal = CommandEvent;