Interface ComponentsJsFactory

Used for instantiating new object using Components.js configurations.

Hierarchy

  • ComponentsJsFactory

Implemented by

Properties

Properties

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

Type declaration

    • <T>(configPath, componentIri, variables): 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.