code: function createInjector(type, creator) {
    return function(WrappedComponent, inputs, outputs) {
      if (typeof WrappedComponent === 'function') {
        const componentName = WrappedComponent.name
        inputs = normalizeInputs(componentName, inputs, WrappedComponent.keys)
        outputs = normalizeOutputs(componentName, inputs, outputs)
        return creator(WrappedComponent, inputs, outputs)
      } else {
        // istanbul ignore next
        const error = `alfa.${type} only accepts function or class. Got "${typeof WrappedComponent}".`
        throw new TypeError(error)
      }
    }
  }
docs: Private functions