UNPKG

kafka-ts

Version:

**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.

11 lines (10 loc) 241 B
export declare const groupByLeaderId: <T extends { topic: string; partition: number; }>(items: T[], leaderIdByTopicPartition: { [topic: string]: { [partition: number]: number; }; }) => { [nodeId: number]: T[]; };