Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/other/embind_tsgen_ignore_2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ interface EmbindModule {
}

export type MainModule = WasmModule & EmbindModule;
export default function MainModuleFactory (options?: unknown): Promise<MainModule>;
export default function MainModuleFactory (moduleOverrides?: Partial<MainModule>): Promise<MainModule>;
2 changes: 1 addition & 1 deletion test/other/embind_tsgen_module.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ interface EmbindModule {
}

export type MainModule = WasmModule & EmbindModule;
export default function MainModuleFactory (options?: unknown): Promise<MainModule>;
export default function MainModuleFactory (moduleOverrides?: Partial<MainModule>): Promise<MainModule>;
2 changes: 1 addition & 1 deletion test/other/test_emit_tsd.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ interface WasmModule {
}

export type MainModule = WasmModule & typeof RuntimeExports;
export default function MainModuleFactory (options?: unknown): Promise<MainModule>;
export default function MainModuleFactory (moduleOverrides?: Partial<MainModule>): Promise<MainModule>;
2 changes: 1 addition & 1 deletion test/other/test_emit_tsd_sync.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ interface WasmModule {
}

export type MainModule = WasmModule;
export default function MainModuleFactory (options?: unknown): MainModule;
export default function MainModuleFactory (moduleOverrides?: Partial<MainModule>): MainModule;
2 changes: 1 addition & 1 deletion tools/emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<MainModule>): {return_type};\n'
return out


Expand Down