@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
29 lines • 1.13 kB
TypeScript
import { ModelIdentifier } from '@dolittle/sdk.common';
import { ScopeId } from '@dolittle/sdk.events';
import { ProjectionId } from './ProjectionId';
/**
* Represents the identifier of a projection in an application model.
*/
export declare class ProjectionModelId extends ModelIdentifier<ProjectionId, '@dolittle/sdk.projections.ProjectionModelId', {
scope: ScopeId;
}> {
/**
* Initialises a new instance of the {@link ProjectionModelId} class.
* @param {ProjectionId} id - The projection id.
* @param {ScopeId} scope - The scope id.
*/
constructor(id: ProjectionId, scope: ScopeId);
/**
* Get the scope of the identifier.
*/
get scope(): ScopeId;
/** @inheritdoc */
protected [Symbol.toStringTag]: string;
}
/**
* Checks whether or not an object is an instance of {@link ProjectionModelId}.
* @param {any} object - The object to check.
* @returns {boolean} True if the object is an {@link ProjectionModelId}, false if not.
*/
export declare const isProjectionModelId: (object: any) => object is ProjectionModelId;
//# sourceMappingURL=ProjectionModelId.d.ts.map