UNPKG

@dolittle/sdk.events.handling

Version:

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

22 lines 914 B
import { ConceptAs } from '@dolittle/concepts'; /** * Defines the types that can be converted to an {@link EventHandlerAlias}. */ export declare type EventHandlerAliasLike = string | EventHandlerAlias; /** * Represents the alias for a EventHandler. */ export declare class EventHandlerAlias extends ConceptAs<string, '@dolittle/sdk.events.handling.EventHandlerAlias'> { /** * Initialises a new instance of the {@link EventHandlerAlias} class. * @param {string} alias - The event handler alias. */ constructor(alias: string); /** * Creates an {@link EventHandlerAlias} from an {@link EventHandlerAliasLike}. * @param {EventHandlerAliasLike} alias - The event handler alias. * @returns {EventHandlerAlias} The created event handler alias concept. */ static from(alias: EventHandlerAliasLike): EventHandlerAlias; } //# sourceMappingURL=EventHandlerAlias.d.ts.map