Can be used to instantiate objects using Components.js. Default main module path is the root folder of the project. For every generate call a new manager will be made, but moduleState will be stored in between calls.

Implements

Constructors

Methods

Constructors

Methods

  • Calls Components.js to instantiate a new object.

    Type Parameters

    • T

    Parameters

    • configPath: string

      Location of the config to instantiate.

    • componentIri: string

      Iri of the object in the config that will be the result.

    • variables: Record<string, unknown>

      Variables to send to Components.js

    Returns Promise<T>

    The resulting object, corresponding to the given component IRI.