@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines (16 loc) • 540 B
text/typescript
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { Key } from './Key';
/**
* Represents a static key selector.
*/
export class StaticKeySelector {
readonly staticKey: Key;
/**
* Initializes a new instance of the {@link StaticKeySelector} class.
* @param {Key | string} key - The static key to use as projection key.
*/
constructor(key: Key | string) {
this.staticKey = Key.from(key);
}
}