@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines • 1.3 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.EventPropertyKeySelector = void 0;
const PropertyNameKeySelector_1 = require("./PropertyNameKeySelector");
/**
* Represents an event property key selector.
*/
class EventPropertyKeySelector {
/**
* Initializes a new instance of {@link PropertyNameKeySelector}.
* @param {PropertyNameKeySelector | string} propertyName - The property on the event to use as key.
*/
constructor(propertyName) {
this.propertyName = PropertyNameKeySelector_1.PropertyNameKeySelector.from(propertyName);
}
}
exports.EventPropertyKeySelector = EventPropertyKeySelector;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRQcm9wZXJ0eUtleVNlbGVjdG9yLmpzIiwic291cmNlUm9vdCI6Ii4uLyIsInNvdXJjZXMiOlsiRXZlbnRQcm9wZXJ0eUtleVNlbGVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFFckcsdUVBQW9FO0FBRXBFOztHQUVHO0FBQ0gsTUFBYSx3QkFBd0I7SUFHakM7OztPQUdHO0lBQ0gsWUFBWSxZQUE4QztRQUN0RCxJQUFJLENBQUMsWUFBWSxHQUFHLGlEQUF1QixDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsQ0FBQztJQUNuRSxDQUFDO0NBQ0o7QUFWRCw0REFVQyJ9