diff --git a/test/other/embind_tsgen_ignore_2.d.ts b/test/other/embind_tsgen_ignore_2.d.ts index f56a1d323f526..1899e864bb90d 100644 --- a/test/other/embind_tsgen_ignore_2.d.ts +++ b/test/other/embind_tsgen_ignore_2.d.ts @@ -151,4 +151,4 @@ interface EmbindModule { } export type MainModule = WasmModule & EmbindModule; -export default function MainModuleFactory (options?: unknown): Promise; +export default function MainModuleFactory (moduleOverrides?: Partial): Promise; diff --git a/test/other/embind_tsgen_module.d.ts b/test/other/embind_tsgen_module.d.ts index c0f947d09e3cf..56f3631ba3813 100644 --- a/test/other/embind_tsgen_module.d.ts +++ b/test/other/embind_tsgen_module.d.ts @@ -152,4 +152,4 @@ interface EmbindModule { } export type MainModule = WasmModule & EmbindModule; -export default function MainModuleFactory (options?: unknown): Promise; +export default function MainModuleFactory (moduleOverrides?: Partial): Promise; diff --git a/test/other/test_emit_tsd.d.ts b/test/other/test_emit_tsd.d.ts index 06dc1288c2ffa..10e2499a8d67a 100644 --- a/test/other/test_emit_tsd.d.ts +++ b/test/other/test_emit_tsd.d.ts @@ -19,4 +19,4 @@ interface WasmModule { } export type MainModule = WasmModule & typeof RuntimeExports; -export default function MainModuleFactory (options?: unknown): Promise; +export default function MainModuleFactory (moduleOverrides?: Partial): Promise; diff --git a/test/other/test_emit_tsd_sync.d.ts b/test/other/test_emit_tsd_sync.d.ts index e3a1e55fd9944..5283b94f1693e 100644 --- a/test/other/test_emit_tsd_sync.d.ts +++ b/test/other/test_emit_tsd_sync.d.ts @@ -6,4 +6,4 @@ interface WasmModule { } export type MainModule = WasmModule; -export default function MainModuleFactory (options?: unknown): MainModule; +export default function MainModuleFactory (moduleOverrides?: Partial): MainModule; diff --git a/tools/emscripten.py b/tools/emscripten.py index 55ffea93aa7ce..7b145421d776f 100644 --- a/tools/emscripten.py +++ b/tools/emscripten.py @@ -679,7 +679,7 @@ def create_tsd(metadata, embind_tsd): return_type = 'MainModule' if settings.WASM_ASYNC_COMPILATION: return_type = f'Promise<{return_type}>' - out += f'export default function MainModuleFactory (options?: unknown): {return_type};\n' + out += f'export default function MainModuleFactory (moduleOverrides?: Partial): {return_type};\n' return out