refactor(docsync): move the sync direction type into the docsync model

The pure model imported its direction type from the flow view. The type
now lives in the model, which takes it as the direction parameter, and
the flow view re-exports it for its existing importers.
This commit is contained in:
Maurice
2026-10-09 11:20:09 +02:00
parent f190aa5a01
commit 5abe5f6519
2 changed files with 5 additions and 4 deletions
@@ -3,9 +3,9 @@ import { useTranslation } from '../../../i18n/TranslationContext'
import { DOCUMENT_PROVIDER_ICONS } from '../../shared/DocumentProviderIcons'
import TrekIcon from '../../shared/TrekIcon'
import { Badge } from './DocSyncBits'
import { toggledDirection } from './docSyncModel'
import { toggledDirection, type SyncDirection } from './docSyncModel'
export type SyncDirection = 'both' | 'pull' | 'push'
export type { SyncDirection }
export interface FlowHoldings {
/** Documents this trip has in TREK. */