mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-17 11:45:58 +08: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.)