Skip to content

Commit

Permalink
Add this annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnmcknight committed Jun 6, 2024
1 parent f44b858 commit 2294b96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,11 @@ declare namespace Moleculer {
nodeId?: string;
}
type BrokerErrorHandlerInfo = BrokerErrorHandlerInfoAction | BrokerErrorHandlerInfoBroker;
type BrokerErrorHandler = (err: Error, info: BrokerErrorHandlerInfo) => void;
type BrokerErrorHandler = (
this: ServiceBroker,
err: Error,
info: BrokerErrorHandlerInfo
) => void;

type BrokerSyncLifecycleHandler = (broker: ServiceBroker) => void;
type BrokerAsyncLifecycleHandler = (broker: ServiceBroker) => void | Promise<void>;
Expand Down

0 comments on commit 2294b96

Please sign in to comment.