Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update kafkajs.d.ts
constructor config mark as optional properly
  • Loading branch information
davidkhala authored and milindl committed May 22, 2025
commit 07048d7a46683141ff279bb66c0b0c037aa8f62d
2 changes: 1 addition & 1 deletion types/kafkajs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export interface CommonConstructorConfig extends GlobalConfig {
}

export class Kafka {
constructor(config: CommonConstructorConfig)
constructor(config?: CommonConstructorConfig)
producer(config?: ProducerConstructorConfig): Producer
consumer(config: ConsumerConstructorConfig): Consumer
admin(config?: AdminConstructorConfig): Admin
Expand Down