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
/
build
/
src
/
commandBus
/
types
/
CommandHandler.d.ts
7 lines
(6 loc)
•
251 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
Command
}
from
'./Command'
;
import
{
CommandResponse
}
from
'./CommandResponse'
;
export
interface
CommandHandler
<RESULT, COMMAND
extends
Command
<RESULT>> {
name
():
string
;
handle
(
command
:
COMMAND
):
Promise
<
CommandResponse
<
RESULT
>>; }