@dolittle/sdk.aggregates
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
28 lines • 1.32 kB
TypeScript
import { ConceptAs } from '@dolittle/concepts';
/**
* Defines types that can be converted to a {@link AggregateRootTypeAlias}.
*/
export declare type AggregateRootTypeAliasLike = string | AggregateRootTypeAlias;
/**
* Represents the alias of an aggregate root type.
*/
export declare class AggregateRootTypeAlias extends ConceptAs<string, '@dolittle/sdk.aggregates.AggregateRootTypeAlias'> {
/**
* Initialises a new instance of the {@link AggregateRootTypeAlias} class.
* @param {string} alias - The aggregate root alias.
*/
constructor(alias: string);
/**
* Creates an {@link AggregateRootTypeAlias} from an {@link AggregateRootTypeAliasLike}.
* @param {AggregateRootTypeAliasLike} alias - The aggregate root type alias.
* @returns {AggregateRootTypeAlias} The created aggregate root type alias concept.
*/
static from(alias: AggregateRootTypeAliasLike): AggregateRootTypeAlias;
}
/**
* Checks whether or not an object is an instance of {@link AggregateRootTypeAlias}.
* @param {any} object - The object to check.
* @returns {boolean} True if the object is an {@link AggregateRootTypeAlias}, false if not.
*/
export declare const isAggregateRootTypeAlias: (object: any) => object is AggregateRootTypeAlias;
//# sourceMappingURL=AggregateRootTypeAlias.d.ts.map