@ccci/micro-server 1.0.188 → 1.0.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConsumerConfig } from "kafkajs";
|
|
1
|
+
import { type Consumer, type ConsumerConfig } from "kafkajs";
|
|
2
2
|
import { BaseKafka } from "./BaseKafka";
|
|
3
3
|
import type { MessageHandler } from "../types/BrokerType";
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ import type { MessageHandler } from "../types/BrokerType";
|
|
|
6
6
|
* It manages the connection, subscription, and message handling logic for Kafka consumers.
|
|
7
7
|
*/
|
|
8
8
|
export declare class BaseConsumer {
|
|
9
|
-
|
|
9
|
+
consumer: Consumer | null;
|
|
10
10
|
private kafka;
|
|
11
11
|
/**
|
|
12
12
|
* Creates an instance of BaseConsumer using a BaseKafka instance.
|