@dolittle/sdk.aggregates
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
21 lines • 780 B
TypeScript
import { EventType } from '@dolittle/sdk.events';
/**
* Represents an uncommitted event that is applied on an aggregate.
*/
export declare class AppliedEvent {
readonly event: any;
readonly eventType: EventType | undefined;
readonly isPublic: boolean;
/**
* Initializes a new instance of {@link AppliedEvent}.
* @param {*} event - The event content.
* @param {EventType | undefined} eventType - The {@link EventType}.
* @param {boolean} isPublic - Whether the event is public or not.
*/
constructor(event: any, eventType: EventType | undefined, isPublic: boolean);
/**
* Gets whether AppliedEvent has event type explicitly defined or not.
*/
get hasEventType(): boolean;
}
//# sourceMappingURL=AppliedEvent.d.ts.map