2022-06-05 08:30:08 +02:00
|
|
|
/* tslint:disable */
|
|
|
|
/* eslint-disable */
|
|
|
|
/**
|
|
|
|
*/
|
|
|
|
export function run_app(): void;
|
|
|
|
|
|
|
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
|
|
|
|
|
|
export interface InitOutput {
|
|
|
|
readonly memory: WebAssembly.Memory;
|
|
|
|
readonly run_app: (a: number) => void;
|
|
|
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
|
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
|
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
2022-07-20 09:21:40 +02:00
|
|
|
readonly _dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc0b84f4ddf4a8fd2: (a: number, b: number, c: number) => void;
|
2022-07-07 10:57:28 +02:00
|
|
|
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfed1f3471f1b926f: (a: number, b: number, c: number) => void;
|
|
|
|
readonly _dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3b7aa7dd2123cac1: (a: number, b: number, c: number) => void;
|
2022-06-05 08:30:08 +02:00
|
|
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
|
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
|
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
|
|
}
|
|
|
|
|
2022-06-22 14:30:08 +02:00
|
|
|
/**
|
|
|
|
* Synchronously compiles the given `bytes` and instantiates the WebAssembly module.
|
|
|
|
*
|
|
|
|
* @param {BufferSource} bytes
|
|
|
|
*
|
|
|
|
* @returns {InitOutput}
|
|
|
|
*/
|
|
|
|
export function initSync(bytes: BufferSource): InitOutput;
|
|
|
|
|
2022-06-05 08:30:08 +02:00
|
|
|
/**
|
|
|
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
|
|
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
|
|
*
|
|
|
|
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
|
|
*
|
|
|
|
* @returns {Promise<InitOutput>}
|
|
|
|
*/
|
|
|
|
export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|