Fix: Resolve syncAllData declaration conflict
The `syncAllData` function was declared in both `src/utils/sync/syncSettings.ts` and `src/utils/syncUtils.ts`, causing a conflict. This commit removes the duplicate declaration from `src/utils/sync/syncSettings.ts` to resolve the TypeScript error.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
// 동기화 관련 모든 기능을 한 곳에서 내보내는 인덱스 파일
|
// 동기화 관련 모든 기능을 한 곳에서 내보내는 인덱스 파일
|
||||||
import { isSyncEnabled, setSyncEnabled, initSyncSettings } from './config';
|
import { isSyncEnabled, setSyncEnabled, initSyncSettings } from './config';
|
||||||
import { getLastSyncTime, setLastSyncTime } from './time';
|
import { getLastSyncTime, setLastSyncTime } from './time';
|
||||||
import { syncAllData } from './data';
|
import { syncAllData as syncData } from './data'; // 이름 충돌 방지를 위해 이름 변경
|
||||||
|
|
||||||
// 단일 진입점에서 모든 기능 내보내기
|
// 단일 진입점에서 모든 기능 내보내기
|
||||||
export {
|
export {
|
||||||
@@ -10,6 +10,8 @@ export {
|
|||||||
setSyncEnabled,
|
setSyncEnabled,
|
||||||
getLastSyncTime,
|
getLastSyncTime,
|
||||||
setLastSyncTime,
|
setLastSyncTime,
|
||||||
syncAllData,
|
|
||||||
initSyncSettings
|
initSyncSettings
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 이름 충돌 방지를 위해 다른 이름으로 내보내기
|
||||||
|
export const syncAllData = syncData;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
import { isSyncEnabled, setSyncEnabled, getLastSyncTime, setLastSyncTime, syncAllData, initSyncSettings } from './sync/syncSettings';
|
import { isSyncEnabled, setSyncEnabled, getLastSyncTime, setLastSyncTime, syncAllData as syncDataFromSettings, initSyncSettings } from './sync/syncSettings';
|
||||||
import { uploadTransactions, downloadTransactions } from './sync/transactionSync';
|
import { uploadTransactions, downloadTransactions } from './sync/transactionSync';
|
||||||
import { uploadBudgets, downloadBudgets } from './sync/budgetSync';
|
import { uploadBudgets, downloadBudgets } from './sync/budgetSync';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user