text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.checkValuesSender = void 0;
  function infoType(data, type) {
      return typeof data === type ? true : false;
  }
  function checkValuesSender(data) {
      if (Array.isArray(data)) {
          for (var i in data) {
              if (typeof i == 'number') {
                  var result = data[i].type && data[i].value && infoType(data[i].value, data[i].type)
                      ? true
                      : !data[i].value && data[i].isUser === false
                          ? true
                          : false;
                  if (!result) {
                      return {
                          erro: true,
                          param: data[i].param,
                          function: data[i].function,
                          text: "Invalid parameter in " + data[i].param + "! Pass a variable of type " + data[i].type + "!"
                      };
                  }
              }
          }
          return true;
      }
      else {
          console.error('Error: checkValuesSender is not array');
      }
  }
  exports.checkValuesSender = checkValuesSender;
  //# sourceMappingURL=layers-interface.js.map