code: function parsePropType(name, propDef) {
    switch (getTypeOf(propDef)) {
      case 'object':
        return normalizePropDefinition(name, propDef);
  
      case 'array':
        return normalizePropDefinition(name, {type: 'array', value: propDef, compare: false});
  
      case 'boolean':
        return normalizePropDefinition(name, {type: 'boolean', value: propDef});
  
      case 'number':
        return normalizePropDefinition(name, {type: 'number', value: propDef});
  
      case 'function':
        return normalizePropDefinition(name, {type: 'function', value: propDef, compare: true});
      // return guessFunctionType(name, propDef);
  
      default:
        return {name, type: 'unknown', value: propDef};
    }
  }
docs: Parses one property definition entry. Either contains: * a valid prop type object ({type, ...}) * or just a default value, in which case type and name inference is used