Utility property definition for CommonJs require
key
Override to provide custom post-initialisation behaviour
an instance of the loaded Javascript class
Override to provide custom pre-initialisation behaviour
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 ECMAScript module, must be accessible using import
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.10.1-edge.4 Source code licensed MIT. Privacy policy
Extension subject for singleton extensions.
Note care must be taken not to expose this subject to updates before the delegate instance (the singleton) has had a chance to attach its source properties. Thus, constructing an instance of this class should always await ready, even if the delegate instance is not immediately required.
ExtensionSubject