Skip to content

Commit

Permalink
Fix offset.commit type def
Browse files Browse the repository at this point in the history
Event offset.commit gets LibrdKafkaError because of #792
  • Loading branch information
iradul committed Jun 11, 2020
1 parent c8d60f5 commit 03dff04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ type EventListener<K> =
'unsubscribe' extends K ? () => void :
'unsubscribed' extends K ? () => void :
// offsets
'offset.commit' extends K ? (error: Error, topicPartitions: TopicPartitionOffset[]) => void :
'offset.commit' extends K ? (error: LibrdKafkaError, topicPartitions: TopicPartitionOffset[]) => void :
// ### Producer only
// delivery
'delivery-report' extends K ? (error: LibrdKafkaError, report: DeliveryReport) => void :
Expand Down

0 comments on commit 03dff04

Please sign in to comment.