UNPKG

@auto-engineer/message-bus

Version:

Message bus for handling commands, events, and queries

13 lines 421 B
/** * Define a command handler with full type safety and metadata * @param config The command handler configuration * @returns A command handler with manifest metadata */ export function defineCommandHandler(config) { // Cast the handle function to the base Command type for interface compatibility return { ...config, handle: config.handle, }; } //# sourceMappingURL=define-command.js.map