importJSObject | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function importJSObject

    • Import an object dynamically from a library.

      Type Parameters

      • ObjectType extends object

        the type of the object expected

      Parameters

      • objectname: string

        the library#name of the object to import. If it's a constructor it will be invoked with the provided arguments

      • ...args: unknown[]

      Returns Promise<ObjectType>

      The requested object