Universal invoke — same API as @tauri-apps/api/core's invoke().
@tauri-apps/api/core
invoke()
In Tauri mode: delegates to Tauri IPC. In web mode: calls the matching WASM export, passing the args object as a single parameter.
const view = await invoke<WorldView>("get_world_view");const result = await invoke<TickResult>("tick_world"); Copy
const view = await invoke<WorldView>("get_world_view");const result = await invoke<TickResult>("tick_world");
Optional
Universal invoke — same API as
@tauri-apps/api/core'sinvoke().In Tauri mode: delegates to Tauri IPC. In web mode: calls the matching WASM export, passing the args object as a single parameter.