update typing

This commit is contained in:
Erik 2023-07-17 20:36:14 +03:00
parent 7e972a39f9
commit 34ab54ebff
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -52,9 +52,9 @@ type InternalQueueMsg = {
} & InternalMessage
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Consumer<T = any> = (content: T, msg: ConsumeMessage) => Promise<void>
type Consumer<T = any> = (content: T, msg: ConsumeMessage) => Promise<void> | void
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Subscriber<T = any> = (content: T, msg: ConsumeMessage) => Promise<void>
type Subscriber<T = any> = (content: T, msg: ConsumeMessage) => Promise<void> | void
class MessageBroker
{