/** * Message are implemented with a type * to understand what message is */ export interface Event { type: string; payload: T; }