Function importJSObject
- importJSObject<ObjectType extends object>(
objectname: string,
...args: unknown[],
): Promise<ObjectType>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
- ObjectType extends object
Import an object dynamically from a library.