UNPKG

aws-event-stream

Version:
31 lines (26 loc) 582 B
/** * An Event in the stream of events */ export interface Event { /** * The event payload. The payload can be any data associated with the event */ payload: any; /** * The time where the event was persisted in the {@link EventStream} */ commitTimestamp?: number; /** * The sequence order for the event in the {@link EventStream} */ sequence?: number; eventType?: string; id?: string; ttl?: number; } export interface EventType extends Event { /** * The type of event */ eventType: string; }