assigned() {
    return Object.values(this.assignedPartitionsByTopic).map(({ topic, partitions }) => ({
      topic,
      partitions: partitions.sort(),
    }))
  }
@returns {Array<import("../../types").TopicPartitions>} topicPartitions
Example: [{ topic: 'topic-name', partitions: [1, 2] }]