Constructors
constructor
-
Parameters
-
Default value __namedParameters: { container: Container } = {}
Methods
emit
- emit<T>(type: keyof SubscribersMetadata, HandlerClass: Class<T>, result: ReturnType<T["handle"]>): Promise<void>
-
Type parameters
Parameters
-
-
HandlerClass: Class<T>
-
result: ReturnType<T["handle"]>
Returns Promise<void>
run
- run<T>(Handler: Class<T>, event: Parameters<T["handle"]>["0"]): Promise<ReturnType<T["handle"]>>
-
Type parameters
Parameters
-
Handler: Class<T>
-
event: Parameters<T["handle"]>["0"]
Returns Promise<ReturnType<T["handle"]>>
Runs commands