17 lines
442 B
TypeScript
17 lines
442 B
TypeScript
// file: crates/apps/game-reflex-poc-tauri/frontend/ts/bridge.ts
|
|
// version: 2
|
|
|
|
import { invoke } from "@tauri-apps/api/core";
|
|
|
|
export async function getRuntimeLabel(): Promise<string> {
|
|
return await invoke<string>("get_runtime_label");
|
|
}
|
|
|
|
export async function notifyFrontendReady(): Promise<void> {
|
|
await invoke("frontend_ready");
|
|
}
|
|
|
|
export async function closeMainWindow(): Promise<void> {
|
|
await invoke("close_main_window");
|
|
}
|