AggregateCommandHandler<TCommand extends Object, TEvent extends Object, TValue extends Object, TId extends AggregateId, TState extends AggregateState<TValue>, TAggregate extends Aggregate<TEvent, TValue, TId, TState>> typedef

AggregateCommandHandler<TCommand extends Object, TEvent extends Object, TValue extends Object, TId extends AggregateId, TState extends AggregateState<TValue>, TAggregate extends Aggregate<TEvent, TValue, TId, TState>> = FutureOr<void> Function(TCommand command, TAggregate aggregate)

Implementation

typedef AggregateCommandHandler<
        TCommand extends Object,
        TEvent extends Object,
        TValue extends Object,
        TId extends AggregateId,
        TState extends AggregateState<TValue>,
        TAggregate extends Aggregate<TEvent, TValue, TId, TState>>
    = FutureOr<void> Function(TCommand command, TAggregate aggregate);