nodefluent / node-sinek

:tophat: Most advanced high level Node.js Kafka client
MIT License
290 stars 52 forks source link

fix typings for NConsumer #102

Closed MrSchneepflug closed 5 years ago

MrSchneepflug commented 5 years ago

This PR will add missing type string.

See lib/librdkafka/NConsumer.js:

/**
 * creates a new consumer instance
 * @param {string|Array} topics - topic or topics to subscribe to
 * @param {object} config - configuration object
 */
constructor(topics, config = { options: {}, health: {} }) {
  [...]
  this.topics = Array.isArray(topics) ? topics : [topics];
  [...]
}