Type Alias ConsumerCallback<TMessage>

ConsumerCallback: (message: WithId<TMessage>) => void | Promise<void>

Type Parameters

Type declaration

    • (message: WithId<TMessage>): void | Promise<void>
    • Parameters

      Returns void | Promise<void>