Interface FeatureHubOptions

Hierarchy

  • FeatureHubOptions

Properties

Provided Feature Services. Sorting the provided definitions is not necessary, since the registry takes care of registering the given definitions in the correct order.

featureServiceDependencies?: FeatureServiceConsumerDependencies

A map of Feature Services the integrator depends on, with the Feature Service ID as key and a semver-compatible version string as value.

logger?: Logger

A custom logger that shall be used instead of console.

moduleLoader?: ModuleLoader

For the FeatureAppManager to be able to load Feature Apps from a remote location, a module loader must be provided. This can either be one of the module loaders that are provided by @feature-hub, i.e. @feature-hub/module-loader-amd, @feature-hub/module-loader-federation, and @feature-hub/module-loader-commonjs, or a custom loader.

onBind?: ((params: OnBindParams) => void)

Type declaration

    • (params: OnBindParams): void
    • A function that is called for every Feature App when its dependent Feature Services are bound. This allows the integrator to collect information about Feature Service and Feature App usage.

      Parameters

      Returns void

providedExternals?: ProvidedExternals

A map of provided externals, with their names as keys and strict semver versions as values.

Generated using TypeDoc