Skip to content

JSModuleBuilder<T>.ExportModule method

Exports the built properties to the module exports object.

C#
public JSValue ExportModule(T module, JSObject exports)
parameterdescription
moduleAn 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.
exportsObject to be returned from the module initializer.

Return Value

The module exports.

See Also

Released under the MIT license