@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
24 lines • 1.31 kB
JavaScript
;
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrentState = void 0;
/**
* Represents the current projection state.
*/
class CurrentState {
/**
* 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, state, key) {
this.type = type;
this.state = state;
this.key = key;
}
}
exports.CurrentState = CurrentState;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VycmVudFN0YXRlLmpzIiwic291cmNlUm9vdCI6Ii4uLyIsInNvdXJjZXMiOlsiU3RvcmUvQ3VycmVudFN0YXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFLckc7O0dBRUc7QUFDSCxNQUFhLFlBQVk7SUFFckI7Ozs7OztPQU1HO0lBQ0gsWUFBcUIsSUFBc0IsRUFBVyxLQUFrQixFQUFXLEdBQVE7UUFBdEUsU0FBSSxHQUFKLElBQUksQ0FBa0I7UUFBVyxVQUFLLEdBQUwsS0FBSyxDQUFhO1FBQVcsUUFBRyxHQUFILEdBQUcsQ0FBSztJQUFHLENBQUM7Q0FDbEc7QUFWRCxvQ0FVQyJ9