29 lines
777 B
TypeScript
29 lines
777 B
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
*/
|
|
export function greet(): void;
|
|
/**
|
|
*/
|
|
export function run(): void;
|
|
|
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
|
|
export interface InitOutput {
|
|
readonly memory: WebAssembly.Memory;
|
|
readonly greet: () => void;
|
|
readonly run: () => void;
|
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
readonly __wbindgen_start: () => void;
|
|
}
|
|
|
|
/**
|
|
* 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>;
|
|
|