Source: clima.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function checkOptions(option, type) {
    if (typeof option !== type) {
        throw new Error(`invalid ${option} passed to constructor.`);
    }
}
/**
  * Create a new Clima instances
  * @class
  * @param {String} apiKey - Contains your API KEY
  * @param {Object} client - Contains a instance client
  *
  */
class Clima {
    constructor(apiKey, client) {
        this.url = 'http://api.openweathermap.org/data/2.5/weather?';
        checkOptions(apiKey, 'string');
        checkOptions(client, 'object');
        this.client = client;
        this.apiKey = apiKey;
    }
}
exports.Clima = Clima;