UNPKG

@nestjs-cqrs-eventsourcing/core

Version:

Event sourcing for nestjs CQRS

18 lines (17 loc) 631 B
import { EventMappings, EventStreamType, EventType, StorableEvent } from '@nestjs-cqrs-eventsourcing/core'; export declare class Event implements EventType { id: string; commitId: string; aggregate: string; context?: string | undefined; aggregateId: string; commitSequence: number; restInCommitStream?: number | undefined; timestamp?: Date; streamRevision: number; payload: StorableEvent; position?: number | undefined; eventMappings?: EventMappings; constructor(eventStream: EventStreamType, payload: StorableEvent, eventMappings?: EventMappings); applyMappings?(): void; }