Interface IEvent<TPayload>

interface IEvent<TPayload> {
    data: TPayload;
    id: string;
    source: string;
    timestamp: Date;
}

Type Parameters

  • TPayload = any

Properties

Properties

data: TPayload

The data that the event carries. It can be anything.

id: string
source: string

The source of the event. This can be useful for debugging.

timestamp: Date

The timestamp when the event was created.