ICommandBus


interface ICommandBus<CommandBase extends ICommand = ICommand> {
  execute<T extends CommandBase, R = any>(command: T): Promise<R>
}

Methods

execute()


execute<T extends CommandBase, R = any>(command: T): Promise<R>

Parameters

Option Type Description
command T

Returns

Promise<R>