UNPKG

@dolittle/sdk.projections

Version:

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

25 lines 1.04 kB
import { ConceptAs } from '@dolittle/concepts'; import { Guid } from '@dolittle/rudiments'; /** * Represents the unique identifier of a Projection. */ export declare class ProjectionId extends ConceptAs<Guid, '@dolittle/sdk.projections.ProjectionId'> { /** * Initialises a new instance of the {@link ProjectionId} class. * @param {Guid} id - The projection id. */ constructor(id: Guid); /** * Creates a {@link ProjectionId} from a {@link Guid} or a {@link string}. * @param {string | Guid | ProjectionId} id - The projection id. * @returns {ProjectionId} The created projection id concept. */ static from(id: string | Guid | ProjectionId): ProjectionId; } /** * Checks whether or not an object is an instance of {@link ProjectionId}. * @param {any} object - The object to check. * @returns {boolean} True if the object is an {@link ProjectionId}, false if not. */ export declare const isProjectionId: (object: any) => object is ProjectionId; //# sourceMappingURL=ProjectionId.d.ts.map