Used for instantiating new object using Components.js configurations.

Hierarchy

  • ComponentsJsFactory

Implemented by

Properties

Properties

generate: (<T>(configPath: string, componentIri: string, variables: Record<string, any>) => Promise<T>)

Type declaration

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

      Returns

      The resulting object, corresponding to the given component IRI.

      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>