Options
All
  • Public
  • Public/Protected
  • All
Menu

Used for instantiating new object using Components.js configurations.

Hierarchy

  • ComponentsJsFactory

Implemented by

Index

Methods

Methods

generate

  • generate<T>(configPath: string, componentIri: string, variables: Record<string, any>): Promise<T>
  • Instantiates a new object using Components.js.

    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.