UNPKG

@dolittle/sdk.projections

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

20 lines (16 loc) 705 B
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import { PropertyNameKeySelector } from './PropertyNameKeySelector'; /** * Represents an event property key selector. */ export class EventPropertyKeySelector { readonly propertyName: PropertyNameKeySelector; /** * Initializes a new instance of {@link PropertyNameKeySelector}. * @param {PropertyNameKeySelector | string} propertyName - The property on the event to use as key. */ constructor(propertyName: PropertyNameKeySelector | string) { this.propertyName = PropertyNameKeySelector.from(propertyName); } }