@grubou/bussy
Version:
Command & query bus implementations
8 lines (7 loc) • 462 B
TypeScript
import { CommandResponse } from '../types/CommandResponse';
import { Command } from '../types/Command';
import { Middleware } from '../../common/Middleware';
import { ChainableMiddleware } from '../../common/ChainableMiddleware';
export interface CommandMiddleware<RESULT> extends Middleware<Command<RESULT>, CommandResponse<RESULT>> {
}
export declare type ChainableCommandMiddleware<RESULT, SELF extends CommandMiddleware<RESULT>> = ChainableMiddleware<SELF>;