|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | + |
| 4 | +export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; |
| 5 | + |
| 6 | +export interface InitOutput { |
| 7 | + readonly memory: WebAssembly.Memory; |
| 8 | + readonly main: (a: number, b: number) => number; |
| 9 | + readonly __externref_table_alloc: () => number; |
| 10 | + readonly __wbindgen_export_1: WebAssembly.Table; |
| 11 | + readonly __wbindgen_exn_store: (a: number) => void; |
| 12 | + readonly __wbindgen_malloc: (a: number, b: number) => number; |
| 13 | + readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; |
| 14 | + readonly __wbindgen_free: (a: number, b: number, c: number) => void; |
| 15 | + readonly __wbindgen_export_6: WebAssembly.Table; |
| 16 | + readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7c750bdadfb77f98: (a: number, b: number) => void; |
| 17 | + readonly closure218_externref_shim: (a: number, b: number, c: any) => void; |
| 18 | + readonly closure223_externref_shim: (a: number, b: number, c: any, d: any) => void; |
| 19 | + readonly closure387_externref_shim: (a: number, b: number, c: any) => void; |
| 20 | + readonly __wbindgen_start: () => void; |
| 21 | +} |
| 22 | + |
| 23 | +export type SyncInitInput = BufferSource | WebAssembly.Module; |
| 24 | +/** |
| 25 | +* Instantiates the given `module`, which can either be bytes or |
| 26 | +* a precompiled `WebAssembly.Module`. |
| 27 | +* |
| 28 | +* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. |
| 29 | +* |
| 30 | +* @returns {InitOutput} |
| 31 | +*/ |
| 32 | +export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; |
| 33 | + |
| 34 | +/** |
| 35 | +* If `module_or_path` is {RequestInfo} or {URL}, makes a request and |
| 36 | +* for everything else, calls `WebAssembly.instantiate` directly. |
| 37 | +* |
| 38 | +* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated. |
| 39 | +* |
| 40 | +* @returns {Promise<InitOutput>} |
| 41 | +*/ |
| 42 | +export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>; |
0 commit comments