code: protected function prepareTypeServiceConfigs($serviceConfig, $typeConfig, $type)
      {
          return array_merge(
              $serviceConfig,
              $typeConfig['config'],
              [
                  'entity_class' => $typeConfig['entity_class'],
                  'document_class' => $typeConfig['document_class'],
                  'document_type' => $type,
              ]
          );
      }
docs: Merges global configs with type config.
  
  @param array  $serviceConfig
  @param array  $typeConfig
  @param string $type
  
  @return array