UNPKG

@fancy-crud/bus

Version:

Utility package to use command responsibility segregation

8 lines (7 loc) 384 B
import type { BusCommand, CommandReturn, IBaseCommand, IBus } from '../axioma'; export declare class Bus implements IBus { private hasImplicitHandler; private implicitHandler; private mapHandler; execute<U extends BusCommand | IBaseCommand>(command: U, providers?: any[]): U extends IBaseCommand ? U['$meta']['returnType'] : CommandReturn<Exclude<U, IBaseCommand>>; }