cqrs-eda
Version:
Lightweight CQRS and Event-Driven Architecture library using TypeScript decorators, handlers and typings. Perfect for scalable event-driven apps.
9 lines • 417 B
TypeScript
import { Constructor } from "../types/base";
/**
* Command decorator to register a class as a command handler.
* @param name - Unique name of the command.
* @throws If a command with the same name is already registered.
*/
export declare function Command(name: string): (target: Constructor) => void;
export declare function getCommandRegistry(): Map<string, Constructor>;
//# sourceMappingURL=decorators.d.ts.map