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.
39 lines (38 loc) • 972 B
TypeScript
export declare const CREATE_TOPICS: import("../utils/api").Api<{
topics: {
name: string;
numPartitions?: number;
replicationFactor?: number;
assignments?: {
partitionIndex: number;
brokerIds: number[];
}[];
configs?: {
name: string;
value: string | null;
}[];
}[];
timeoutMs?: number | undefined;
validateOnly?: boolean | undefined;
}, {
_tag: void;
throttleTimeMs: number;
topics: {
name: string | null;
topicId: string;
errorCode: number;
errorMessage: string | null;
numPartitions: number;
replicationFactor: number;
configs: {
name: string | null;
value: string | null;
readOnly: boolean;
configSource: number;
isSensitive: boolean;
_tag: void;
}[];
_tag: void;
}[];
_tag2: void;
}>;