Home > rc-js-util > getEmscriptenWrapper
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>>;
Parameter | Type | Description |
---|---|---|
memory | IWebAssemblyMemoryMemory | |
emscriptenModuleFactory | Emscripten.EmscriptenModuleFactory<TMod> | |
extension | Partial<TExt> | (Optional) |
Returns:
Promise<IEmscriptenWrapper<TExt & TMod>>