Update dependencies

This commit is contained in:
Surma
2023-02-06 16:24:14 +00:00
parent 583117697e
commit 8571b86b1d
9 changed files with 193 additions and 77 deletions

View File

@@ -23,6 +23,17 @@ export interface InitOutput {
readonly __wbindgen_free: (a: number, b: number) => void;
}
export type SyncInitInput = BufferSource | WebAssembly.Module;
/**
* Instantiates the given `module`, which can either be bytes or
* a precompiled `WebAssembly.Module`.
*
* @param {SyncInitInput} module
*
* @returns {InitOutput}
*/
export function initSync(module: SyncInitInput): InitOutput;
/**
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
* for everything else, calls `WebAssembly.instantiate` directly.