@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
21 lines • 1.19 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.EventSelector = void 0;
/**
* Represents a projection event and key selector.
*/
class EventSelector {
/**
* Initializes a new instance of {@link EventSelector}.
* @param {EventType} eventType - The event type to project from.
* @param {KeySelector} keySelector - The key selector to use to select keys from the event type.
*/
constructor(eventType, keySelector) {
this.eventType = eventType;
this.keySelector = keySelector;
}
}
exports.EventSelector = EventSelector;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTZWxlY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIkV2ZW50U2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQU1yRzs7R0FFRztBQUNILE1BQWEsYUFBYTtJQUV0Qjs7OztPQUlHO0lBQ0gsWUFDYSxTQUFvQixFQUNwQixXQUF3QjtRQUR4QixjQUFTLEdBQVQsU0FBUyxDQUFXO1FBQ3BCLGdCQUFXLEdBQVgsV0FBVyxDQUFhO0lBQ3JDLENBQUM7Q0FDSjtBQVhELHNDQVdDIn0=