returns

Specifies the domain event types that this command handler may return.

This information is used for:

  • API documentation generation

  • Runtime validation of return types

  • Framework optimization and routing

If not specified, the framework will infer the return types from the actual function signature. Explicit specification improves clarity and enables compile-time validation.