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) 245 B
export type Message = { topic: string; partition?: number; offset?: bigint; timestamp?: bigint; key?: string | null; value: string | null; headers?: Record<string, string>; }; export type Batch = Required<Message>[];