mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user