Context module construction options.

Hierarchy

  • Options

Properties

Methods

Properties

has?: CxModule | readonly CxModule[]

A module or modules the constructed one provides.

When specified, the constructed module will be loaded instead of the listed ones.

The module always provides itself.

needs?: CxModule | readonly CxModule[]

A module or modules the constructed one requires.

The listed modules will be loaded prior to loading the constructed one.

Methods

  • Sets up constructed module.

    This method is called when loading the module. It is used e.g. to provide more values for the context.

    Parameters

    • setup: Setup

      Context module setup.

    Returns void | PromiseLike<unknown>

    Either nothing to set up the module synchronously, or a promise-like instance resolved when the module is set up asynchronously.

Generated using TypeDoc