code: function getValidValues() {
      var typeSpec = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  
      var valueStr = void 0;
  
      if (typeSpec.value) {
          var values = Array.isArray(typeSpec.value) ? typeSpec.value : [typeSpec.value];
  
          var validValues = values.map(function (value) {
              var valueName = value.name;
              var valueValue = value.value;
  
              if (valueValue) {
                  if ((typeof valueValue === 'undefined' ? 'undefined' : _typeof(valueValue)) === 'object') {
                      return getValidValues(value);
                  }
  
                  return valueValue;
              } else if (valueName && valueName !== 'custom') {
                  return '<' + valueName + '>';
              }
          });
  
          valueStr = validValues.join(', ');
  
          if (typeSpec.name === 'arrayOf') {
              valueStr = 'array[' + valueStr + ']';
          }
      } else if (typeSpec.name) {
          valueStr = '<' + typeSpec.name + '>';
      }
  
      return valueStr;
  }
docs: /* Helper method to build a pretty string of valid values for
  a given prop from the JSON generated by react-docgen