No geenric
This commit is contained in:
parent
81e62493a5
commit
c897b60176
3 changed files with 8 additions and 5 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export class SyncClient {
|
|||
(path: RelativePath) => unknown
|
||||
>,
|
||||
private readonly contentCache: FixedSizeDocumentCache,
|
||||
private readonly persistence: MetadataPersistenceProvider<StoredClient>
|
||||
private readonly persistence: MetadataPersistenceProvider
|
||||
) {
|
||||
syncer.onServerHistoryChanged.add(() => {
|
||||
cursorTracker.reset();
|
||||
|
|
@ -109,7 +109,7 @@ export class SyncClient {
|
|||
webSocket
|
||||
}: {
|
||||
fs: FileSystemOperations;
|
||||
persistence: MetadataPersistenceProvider<StoredClient>;
|
||||
persistence: MetadataPersistenceProvider;
|
||||
fetch?: typeof globalThis.fetch;
|
||||
webSocket?: typeof globalThis.WebSocket;
|
||||
}): Promise<SyncClient> {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue