UNPKG

@dolittle/sdk.events.handling

Version:

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

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