mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-03 04:04:33 +00:00
Previously, only KafkaClient (subclass) had signatures for `on()`. However, Client and KafkaClient emit many of the same events. - See https://github.com/SOHU-Co/kafka-node/blob/master/lib/client.js and https://github.com/SOHU-Co/kafka-node/blob/master/lib/kafkaClient.js (Search for the string `emit(`) zkReconnect is exclusive to Client, and socket_connect is exclusive to KafkaClient. TypeScript's type checker warns if I put on() declarations in KafkaClient. (Haven't tried duplicating.)