src/handlers/propTypeCompositionHandler.js
function amendComposes(documentation, path) {
  const moduleName = resolveToModule(path);
  if (moduleName) {
    documentation.addComposes(moduleName);
  }
}
function amendComposes(documentation, path) {
  const moduleName = resolveToModule(path);
  if (moduleName) {
    documentation.addComposes(moduleName);
  }
}
function amendComposes ( documentation , path ) { const moduleName = resolveToModule ( path ) ; if ( moduleName ) { documentation . addComposes ( moduleName ) ; } }
It resolves the path to its module name and adds it to the "composes" entry
in the documentation.
It resolves the path to its module name and adds it to the composes entry in the documentation .