From 5160872c61b4942690235d9005e132d5946a33f0 Mon Sep 17 00:00:00 2001 From: liuzhehan Date: Sun, 17 Jan 2021 16:48:58 +0800 Subject: [PATCH] types: mark ConsumerConfig required --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 8f6e2cd96..0a18e2323 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -9,7 +9,7 @@ type XOR = T | U extends object ? (Without & U) | (Without & T export class Kafka { constructor(config: KafkaConfig) producer(config?: ProducerConfig): Producer - consumer(config?: ConsumerConfig): Consumer + consumer(config: ConsumerConfig): Consumer admin(config?: AdminConfig): Admin logger(): Logger }