@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
19 lines • 723 B
TypeScript
import { Key } from '../Key';
import { CurrentStateType } from './CurrentStateType';
/**
* Represents the current projection state.
*/
export declare class CurrentState<TProjection> {
readonly type: CurrentStateType;
readonly state: TProjection;
readonly key: Key;
/**
* Creates an instance of a projections current state.
* @param {CurrentStateType} type - The type of the projections current state.
* @param {TProjection} state - State of the projection.
* @param {Key} key - The key of the projection.
* @template TProjection The type of the projection.
*/
constructor(type: CurrentStateType, state: TProjection, key: Key);
}
//# sourceMappingURL=CurrentState.d.ts.map