From 34ab54ebff16948c0df71aa17f0cea4c5d416017 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 17 Jul 2023 20:36:14 +0300 Subject: [PATCH] update typing --- src/MessageBroker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MessageBroker.ts b/src/MessageBroker.ts index 2f443d4..b8cbb2a 100644 --- a/src/MessageBroker.ts +++ b/src/MessageBroker.ts @@ -52,9 +52,9 @@ type InternalQueueMsg = { } & InternalMessage // eslint-disable-next-line @typescript-eslint/no-explicit-any -type Consumer = (content: T, msg: ConsumeMessage) => Promise +type Consumer = (content: T, msg: ConsumeMessage) => Promise | void // eslint-disable-next-line @typescript-eslint/no-explicit-any -type Subscriber = (content: T, msg: ConsumeMessage) => Promise +type Subscriber = (content: T, msg: ConsumeMessage) => Promise | void class MessageBroker {