aws-event-stream
Version:
A simple and fast EventStore for AWS.
31 lines (26 loc) • 582 B
text/typescript
/**
* 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;
}