Class BaseComponentsJsFactory

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.

Hierarchy

  • BaseComponentsJsFactory

Implements

Constructors

Properties

Methods

Constructors

Properties

options: IComponentsManagerBuilderOptions<any>

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, any>

      Variables to send to Components.js

    Returns Promise<T>

    The resulting object, corresponding to the given component IRI.