Gets sync configuration from storage.
The saved sync configuration or default config if not found.
const config = getSyncConfig(); Copy
const config = getSyncConfig();
export function getSyncConfig(): SyncConfig { try { const config = storage.getItem(STORAGE_KEYS.SYNC_CONFIG); return config ? JSON.parse(config) : DEFAULT_SYNC_CONFIG; } catch (error) { console.error("Error retrieving sync config from storage", error); return DEFAULT_SYNC_CONFIG; }} Copy
export function getSyncConfig(): SyncConfig { try { const config = storage.getItem(STORAGE_KEYS.SYNC_CONFIG); return config ? JSON.parse(config) : DEFAULT_SYNC_CONFIG; } catch (error) { console.error("Error retrieving sync config from storage", error); return DEFAULT_SYNC_CONFIG; }}
Gets sync configuration from storage.