Fix TypeScript errors

- Corrected import/export issues related to SyncResult, setSyncEnabled, and clearCloudData in syncUtils.ts.
- Updated function calls to match expected arguments.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-21 08:41:13 +00:00
parent a97234d9fa
commit 2290cf0fc3
4 changed files with 41 additions and 315 deletions

View File

@@ -120,8 +120,11 @@ const performSync = async (userId: string) => {
if (!userId) return;
try {
// 안전한 동기화 함수 사용
const result = await trySyncAllData(userId);
// 안전한 동기화 함수 사용 (setSyncState를 더미 함수로 제공)
const result = await trySyncAllData(userId, (state) => {
// 상태 업데이트 콜백 (필요에 따라 처리)
console.log('동기화 상태 업데이트:', state);
});
return result;
} catch (error) {
console.error('동기화 오류:', error);