var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

export { SettingDefProps } from './SettingDefProps';
export { SettingTypes } from './SettingTypes';

export function selectDefinitionsFromManifest(manifest) {
  if (!manifest || (typeof manifest === 'undefined' ? 'undefined' : _typeof(manifest)) !== 'object') {
    throw new Error('expecting a manifest object');
  }

  var settings = manifest.settings;

  return settings instanceof Array ? settings : [];
}