Merge c0f5e88c6f into 6739742fb6
This commit is contained in:
commit
35cc0ef8e4
5 changed files with 63 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue