Interface IEventDefinition<TPayload>

interface IEventDefinition<TPayload> {
    [symbolEvent]: true;
    id: string;
    meta?: IEventMeta;
}

Type Parameters

  • TPayload = void

Properties

[symbolEvent]: true

We use this event to discriminate between resources with just 'id' and 'events' as they collide. This is a workaround, should be redone using classes and instanceof.

id: string
meta?: IEventMeta