This commit is contained in:
Wilco Kruijer 2026-01-21 04:02:24 +00:00 committed by GitHub
commit 35cc0ef8e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 63 additions and 6 deletions

View file

@ -260,9 +260,12 @@ fn build_wasm(cmd: &mut Command, edit_tsd: bool) -> Result<()> {
"undefined, localScope?: any | undefined, handle?: number | undefined): any"
),
concat!(
"loadWebAssemblyModule(binary: Uint8Array | WebAssembly.Module, flags: Record<string, boolean>,",
"loadWebAssemblyModule(binary: Uint8Array | WebAssembly.Module, flags: { loadAsync: true } & Record<string, boolean>,",
" libName?: string, localScope?: Record<string, unknown>, handle?: number):",
" Promise<Record<string, () => number>>"
" Promise<Record<string, () => number>>;\n",
" function loadWebAssemblyModule(binary: Uint8Array | WebAssembly.Module, flags: { loadAsync: false } & Record<string, boolean>,",
" libName?: string, localScope?: Record<string, unknown>, handle?: number):",
" Record<string, () => number>"
),
)
.replace(