UNPKG
@grubou/bussy
Version:
latest (1.0.0)
1.0.0
0.1.3
0.1.2
0.1.1
0.0.1
Command & query bus implementations
github.com/franck-romano/bussy
franck-romano/bussy
@grubou/bussy
/
src
/
eventBus
/
types
/
EventBus.ts
8 lines
(5 loc)
•
272 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
EventHandler
}
from
'./EventHandler'
;
import
{
Bus
}
from
'../../common/Bus'
;
import
{
DomainEvent
}
from
'./DomainEvent'
;
export
type
EventHandlers
= { [
event
:
string
]:
EventHandler
<
DomainEvent
>[] };
export
interface
EventBus
extends
Bus
<
DomainEvent
,
void
> {}