ERR_MODULE_NOT_FOUND or any constructor errors
Extension subject declaration. Insert into the domain data to register a module export to be instantiated by an extension subject.
For example (assuming a m-ld clone
object):
clone.write(ExtensionSubject.declare(
'myCustomClass',
'my-custom-module',
'MyExtClass'
));
the CommonJS module (must be accessible using require
)
the constructor name exported by the module
additional properties
Obtain an instance of a custom class declared in the data as the type of the given graph subject.
Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.9.2-edge.3 Source code licensed MIT. Privacy policy
Directly-instantiable extension subject for singleton extensions.
ExtensionSubject