Files
zellyy-finance/src/utils/syncUtils.ts
gpt-engineer-app[bot] 6ec671e9ab Fix TypeScript and Sync Errors
- Resolves TypeScript errors related to missing exports and incorrect argument counts.
- Corrects re-exporting of types to comply with `isolatedModules` setting.
- Addresses issues in sync-related files to ensure proper functionality.
2025-03-21 08:43:47 +00:00

27 lines
794 B
TypeScript

import { isSyncEnabled, setSyncEnabled, initSyncSettings } from './sync/config';
import { getLastSyncTime, setLastSyncTime } from './sync/time';
import { trySyncAllData } from './sync/data';
import { clearCloudData } from './sync/clearCloudData';
// SyncResult 타입 내보내기 수정
export type { SyncResult } from './sync/data';
// 모든 유틸리티 함수를 동일한 공개 API로 유지하기 위해 내보내기
export {
isSyncEnabled,
setSyncEnabled,
getLastSyncTime,
setLastSyncTime,
trySyncAllData,
clearCloudData,
initSyncSettings
};
// App.tsx에서 사용하는 initSyncState 함수 추가
export const initSyncState = async (): Promise<void> => {
// 동기화 설정 초기화
initSyncSettings();
console.log('동기화 상태 초기화 완료');
};