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.
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
|
||||
import { isSyncEnabled, getNetworkStatus, setNetworkStatus, startNetworkMonitoring,
|
||||
stopNetworkMonitoring, onNetworkStatusChange, addToSyncQueue,
|
||||
processPendingSyncQueue, getLastSyncTime, setLastSyncTime } from './sync/syncSettings';
|
||||
import { isSyncEnabled, setSyncEnabled, initSyncSettings } from './sync/config';
|
||||
import { getLastSyncTime, setLastSyncTime } from './sync/time';
|
||||
import { trySyncAllData } from './sync/data';
|
||||
import { SyncResult } from './sync/data';
|
||||
import { clearCloudData } from './sync/clearCloudData';
|
||||
import { setSyncEnabled } from './sync/config';
|
||||
|
||||
// SyncResult 타입 내보내기 수정
|
||||
export type { SyncResult } from './sync/data';
|
||||
|
||||
// 모든 유틸리티 함수를 동일한 공개 API로 유지하기 위해 내보내기
|
||||
export {
|
||||
isSyncEnabled,
|
||||
setSyncEnabled,
|
||||
getNetworkStatus,
|
||||
setNetworkStatus,
|
||||
startNetworkMonitoring,
|
||||
stopNetworkMonitoring,
|
||||
onNetworkStatusChange,
|
||||
addToSyncQueue,
|
||||
processPendingSyncQueue,
|
||||
getLastSyncTime,
|
||||
setLastSyncTime,
|
||||
trySyncAllData,
|
||||
SyncResult,
|
||||
clearCloudData
|
||||
clearCloudData,
|
||||
initSyncSettings
|
||||
};
|
||||
|
||||
// App.tsx에서 사용하는 initSyncState 함수 추가
|
||||
export const initSyncState = async (): Promise<void> => {
|
||||
// 동기화 설정 초기화
|
||||
initSyncSettings();
|
||||
console.log('동기화 상태 초기화 완료');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user