code: function transformType (type) {
    if (Array.isArray(type)) {
      return transformArray(type)
    }
  
    if (typeof type === 'object') {
      return transformObject(type)
    }
  
    if (
      typeof type === 'function' &&
      (!type.prototype || type.name === '')
    ) {
      return type
    }
  
    return findType(type)
  }
docs: Transform types into validator function or an Object/Array of
  validator functions
  @param  {Object|Array|Function} type is an object/array schema or a validator function
  @return {Object|Array}  The transformed type
  @public