Skip to content

Commit

Permalink
Merge pull request #758 from Collaborne/pr/fix-typo-type-TopicPartiti…
Browse files Browse the repository at this point in the history
…onOffsetAndMetadata

Fix a typo in a type name
  • Loading branch information
Nevon committed Jun 10, 2020
2 parents d9636f8 + 4f38c44 commit 0100749
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,16 @@ export type GroupDescription = {
}

export type TopicPartitions = { topic: string; partitions: number[] }
export type TopicPartitionOffsetAndMedata = {
export type TopicPartitionOffsetAndMetadata = {
topic: string
partition: number
offset: string
metadata?: string | null
}

// TODO: Remove with 2.x
export type TopicPartitionOffsetAndMedata = TopicPartitionOffsetAndMetadata

export type Batch = {
topic: string
partition: number
Expand Down Expand Up @@ -669,7 +672,7 @@ export type Consumer = {
subscribe(topic: ConsumerSubscribeTopic): Promise<void>
stop(): Promise<void>
run(config?: ConsumerRunConfig): Promise<void>
commitOffsets(topicPartitions: Array<TopicPartitionOffsetAndMedata>): Promise<void>
commitOffsets(topicPartitions: Array<TopicPartitionOffsetAndMetadata>): Promise<void>
seek(topicPartition: { topic: string; partition: number; offset: string }): void
describeGroup(): Promise<GroupDescription>
pause(topics: Array<{ topic: string; partitions?: number[] }>): void
Expand Down

0 comments on commit 0100749

Please sign in to comment.