Appearance
@luminaphoto/lumina-js / Core / loadWasmModule
Function: loadWasmModule()
ts
function loadWasmModule(): Promise<Module>;Load and initialize the Lumina WASM module
Ensures the module is loaded only once and returns the same instance for all subsequent calls. Handles the Emscripten ES6 module initialization pattern.
Returns
Promise<Module>
Promise that resolves to the initialized WASM module
Throws
Error if module loading fails
Example
typescript
const module = await loadWasmModule();
const image = module.ImageLoader.loadJpegFromBuffer(data);