feat(nbstore): add doc sync state (#9131)

This commit is contained in:
EYHN
2024-12-18 03:59:46 +00:00
parent 8374346b2e
commit 3fddf050a4
4 changed files with 129 additions and 8 deletions
+2 -1
View File
@@ -1,12 +1,13 @@
import EventEmitter2 from 'eventemitter2';
import type { ConnectionStatus } from '../connection';
import type { AwarenessStorage } from './awareness';
import type { BlobStorage } from './blob';
import type { DocStorage } from './doc';
import type { Storage, StorageType } from './storage';
import type { SyncStorage } from './sync';
type Storages = DocStorage | BlobStorage | SyncStorage;
type Storages = DocStorage | BlobStorage | SyncStorage | AwarenessStorage;
export class SpaceStorage {
protected readonly storages: Map<StorageType, Storage> = new Map();