fix: resolve cycle imports and prevent it by oxlint (#5103)

This commit is contained in:
LongYinan
2023-11-29 04:43:27 +00:00
parent b73e87e4ad
commit a843dcd851
25 changed files with 309 additions and 1034 deletions
@@ -3,16 +3,9 @@ import { Slot } from '@blocksuite/global/utils';
import type { Doc } from 'yjs';
import type { Storage } from '../storage';
import { MANUALLY_STOP, SyncEngineStep } from './consts';
import { SyncPeer, type SyncPeerStatus, SyncPeerStep } from './peer';
export const MANUALLY_STOP = 'manually-stop';
export enum SyncEngineStep {
Stopped = 0,
Syncing = 1,
Synced = 2,
}
export interface SyncEngineStatus {
step: SyncEngineStep;
local: SyncPeerStatus | null;