Type Alias IEventDispatcher<TEvents>

IEventDispatcher<TEvents>: {
    dispatch(event: TEvents): LazyPromise<void>;
    dispatchMany(events: TEvents[]): LazyPromise<void>;
}

The IEventDispatcher contract defines a way for dispatching to events independent of underlying technology.

Type Parameters

Type declaration