fix(ui): use browser-safe timeout ref type (ReturnType<typeof setTimeout>) to avoid NodeJS.Timeout mismatch

This commit is contained in:
Jason
2025-08-24 23:31:56 +08:00
parent 0301d1aee7
commit 1458f1e45d

View File

@@ -25,7 +25,7 @@ function App() {
message: string;
onConfirm: () => void;
} | null>(null);
const timeoutRef = useRef<NodeJS.Timeout | null>(null);
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
// 设置通知的辅助函数
const showNotification = (