js-util

Home > rc-js-util > getEmscriptenWrapper

getEmscriptenWrapper() function

Factory for creating wrapped emscripten module.

Signature:

export declare function getEmscriptenWrapper<TExt extends object, TMod extends object>(memory: IWebAssemblyMemoryMemory, emscriptenModuleFactory: Emscripten.EmscriptenModuleFactory<TMod>, extension?: Partial<TExt>): Promise<IEmscriptenWrapper<TExt & TMod>>;

Parameters

Parameter Type Description
memory IWebAssemblyMemoryMemory  
emscriptenModuleFactory Emscripten.EmscriptenModuleFactory<TMod>  
extension Partial<TExt> (Optional)

Returns:

Promise<IEmscriptenWrapper<TExt & TMod>>