@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
18 lines • 779 B
TypeScript
import { EventContext } from '@dolittle/sdk.events';
import { Key } from './Key';
/**
* Represents the context of a projection.
*/
export declare class ProjectionContext {
readonly wasCreatedFromInitialState: boolean;
readonly key: Key;
readonly eventContext: EventContext;
/**
* Initializes a new instance of {@link ProjectionContext}.
* @param {boolean} wasCreatedFromInitialState - Whether the projection state was created from the initial state or retrieved from a persisted state.
* @param {Key} key - The projection key.
* @param {EventContext} eventContext - The context of the event.
*/
constructor(wasCreatedFromInitialState: boolean, key: Key, eventContext: EventContext);
}
//# sourceMappingURL=ProjectionContext.d.ts.map