interface IQueryHandler Since 0.1.0 Handles one query type. Type Parameters TQuery extends CqrsQuery = CqrsQuery The query type TResult = unknown The result type Methods handle(query: TQuery): TResult | Promise<TResult> Executes the query.