JSModuleBuilder<T>.ExportModule method
Exports the built properties to the module exports object.
C#
public JSValue ExportModule(T module, JSObject exports)
parameter | description |
---|---|
module | An object that represents the module instance and is used as the 'this' argument for any non-static methods on the module. If the object implements IDisposable then it is also registered for disposal when the module is unloaded. |
exports | Object to be returned from the module initializer. |
Return Value
The module exports.
See Also
- struct JSValue
- struct JSObject
- class JSModuleBuilder<T>
- namespace Microsoft.JavaScript.NodeApi.Interop