From 1458f1e45de22af8a7da5e7b658175446a8b8c04 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 24 Aug 2025 23:31:56 +0800 Subject: [PATCH] fix(ui): use browser-safe timeout ref type (ReturnType) to avoid NodeJS.Timeout mismatch --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index f6e4ce3..3117fb0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -25,7 +25,7 @@ function App() { message: string; onConfirm: () => void; } | null>(null); - const timeoutRef = useRef(null); + const timeoutRef = useRef | null>(null); // 设置通知的辅助函数 const showNotification = (