From c897b601767adcafb7a32850cf614ed9a0f1674e Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Tue, 29 Sep 2026 22:26:51 +0100 Subject: [PATCH] No geenric --- frontend/sync-client/src/index.ts | 7 +++++-- frontend/sync-client/src/sync-client.ts | 4 ++-- frontend/sync-client/src/utils/portable-path.test.ts | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/sync-client/src/index.ts b/frontend/sync-client/src/index.ts index a602f1c9..5f05ec1f 100644 --- a/frontend/sync-client/src/index.ts +++ b/frontend/sync-client/src/index.ts @@ -29,7 +29,10 @@ export type { } from "./persistence/database"; export { FileKind, type FileSystemOperations } from "./file-operations/filesystem-operations"; export type { FileSnapshot } from "./snapshot"; -export type { MetadataPersistenceProvider as PersistenceProvider } from "./persistence/metadata-persistence-provider"; +export type { + MetadataPersistenceProvider as PersistenceProvider, + StoredClient +} from "./persistence/metadata-persistence-provider"; export type { CursorSpan } from "./services/types/CursorSpan"; export type { ClientCursors } from "./services/types/ClientCursors"; export type { NetworkConnectionStatus } from "./types/network-connection-status"; @@ -39,7 +42,7 @@ export type { } from "./errors/errors"; export type { MaybeOutdatedClientCursors } from "./types/maybe-outdated-client-cursors"; export { DocumentSyncStatus } from "./types/document-sync-status"; -export { SyncClient, type StoredClient } from "./sync-client"; +export { SyncClient } from "./sync-client"; export type { TextWithCursors, CursorPosition } from "reconcile-text"; export const debugging = { diff --git a/frontend/sync-client/src/sync-client.ts b/frontend/sync-client/src/sync-client.ts index 2a84122f..d00b2061 100644 --- a/frontend/sync-client/src/sync-client.ts +++ b/frontend/sync-client/src/sync-client.ts @@ -52,7 +52,7 @@ export class SyncClient { (path: RelativePath) => unknown >, private readonly contentCache: FixedSizeDocumentCache, - private readonly persistence: MetadataPersistenceProvider + private readonly persistence: MetadataPersistenceProvider ) { syncer.onServerHistoryChanged.add(() => { cursorTracker.reset(); @@ -109,7 +109,7 @@ export class SyncClient { webSocket }: { fs: FileSystemOperations; - persistence: MetadataPersistenceProvider; + persistence: MetadataPersistenceProvider; fetch?: typeof globalThis.fetch; webSocket?: typeof globalThis.WebSocket; }): Promise { diff --git a/frontend/sync-client/src/utils/portable-path.test.ts b/frontend/sync-client/src/utils/portable-path.test.ts index 20e6591a..9814f513 100644 --- a/frontend/sync-client/src/utils/portable-path.test.ts +++ b/frontend/sync-client/src/utils/portable-path.test.ts @@ -33,7 +33,7 @@ test("a small deeply nested manifest fits within a bounded validation heap", () assert.equal(result.status, 0, result.stderr || String(result.error)); }); -test("conflict allocation renames the first obstructed component deterministically", () => { +test("conflict allocation renames the first colliding component deterministically", () => { const cases: { wanted: string; occupied: string[]; expected: string }[] = [ { wanted: "Notes/a.md",