function interfaceName (component) {
  // Root doesn't have splits
  if (component.splits.length === 0) {
    return 'ApiRoot'
  }

  //
  // Replace '.'s with '_'s and CamelCase.
  //
  return component.splits
    .map(split => split.replace(/\./g, '_').replace(/./, first => first.toUpperCase()))
    .join('')
}
Get the typescript interface name for a swagger-fluent component.
@param {object} component - swagger-fluent Component.
@returns {string} TypeScript interface name