feat: implement vue-sync-engine with tab synchronization and transport layers

This commit is contained in:
2026-05-28 14:14:29 +07:00
parent fd228db820
commit 654bca0a00
43 changed files with 4128 additions and 0 deletions
@@ -0,0 +1,11 @@
import type { EntityId } from './types'
export interface KeyedStore<T = unknown> {
read(key: EntityId): Promise<T | undefined>
readMany(keys: readonly EntityId[]): Promise<Array<T | undefined>>
readAll(): Promise<T[]>
write(items: ReadonlyArray<{ key: EntityId; value: T }>): Promise<void>
delete(key: EntityId): Promise<void>
}
export type KeyedStoreFactory<T = unknown> = (name: string) => KeyedStore<T>