function registerSpecs(loader, packageId, name, specs) {
  if (!specs || specs.indexOf('.yaml') === -1) {
    // We support only fbp-spec specs
    return;
  }
  const componentName = `${packageId}/${name}`;
  // eslint-disable-next-line no-param-reassign
  loader.specsForComponents[componentName] = specs;
}
@param {import("../ComponentLoader").ComponentLoader} loader
@param {string} packageId
@param {string} name
@param {string} specs
@returns {void}