CommandBus.prototype.execute<TResult = unknown>(command: CqrsCommand): Promise<TResult>
Executes a command.
command: CqrsCommand
The command to execute
Promise<TResult>
The handler's result
CommandBus.prototype.execute<TResult = unknown>(command: CqrsCommand): Promise<TResult>
Executes a command.
command: CqrsCommand
The command to execute
Promise<TResult>
The handler's result
import { CommandBus } from "cqrs-plugin/src/index.ts";