fix return value

keypair34 committed Aug 18, 2025 at 15:21 UTC ba7961b9dcdf87484cb10521ae0416ae37c98b9a
1 file changed +2 -4
guest-js/index.ts
+2 -4
@@ -1,7 +1,5 @@
1 import { invoke } from "@tauri-apps/api/core";
2
3 -export async function check(): Promise<string | null> {
4 - return await invoke<{ value?: string }>("plugin:android-tv-check|check").then(
5 - (r) => (r.value ? r.value : null),
6 - );
3 +export async function check(): Promise<{ isAndroidTv: boolean }> {
4 + return await invoke("plugin:android-tv-check|check");
5 }