Options
All
  • Public
  • Public/Protected
  • All
Menu

Used for instantiating new object using Components.js configurations.

Hierarchy

  • ComponentsJsFactory

Index

Properties

Properties

generate

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

Instantiates a new object using Components.js.

param

Location of the config to instantiate.

param

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

param

Variables to send to Components.js

returns

The resulting object, corresponding to the given component IRI.

Type declaration

    • <T>(configPath: string, componentIri: string, variables: Record<string, any>): Promise<T>
    • Type parameters

      • T

      Parameters

      • configPath: string
      • componentIri: string
      • variables: Record<string, any>

      Returns Promise<T>