From b7d5fb3ccb04c0384ce85114ee361f63fd47b0a2 Mon Sep 17 00:00:00 2001 From: Peter van Hardenberg Date: Fri, 10 Jan 2025 16:39:38 -0800 Subject: [PATCH] fix lint complaints --- packages/automerge-repo/src/RemoteHeadsSubscriptions.ts | 8 +++++--- packages/automerge-repo/src/storage/StorageSubsystem.ts | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/automerge-repo/src/RemoteHeadsSubscriptions.ts b/packages/automerge-repo/src/RemoteHeadsSubscriptions.ts index 222bba65b..29e129c3d 100644 --- a/packages/automerge-repo/src/RemoteHeadsSubscriptions.ts +++ b/packages/automerge-repo/src/RemoteHeadsSubscriptions.ts @@ -1,4 +1,3 @@ -import { next as A } from "@automerge/automerge/slim" import { EventEmitter } from "eventemitter3" import { DocumentId, PeerId } from "./types.js" import { @@ -357,11 +356,14 @@ export class RemoteHeadsSubscriptions extends EventEmitter= timestamp) { continue } else { - remote.set(storageId as StorageId, { timestamp, heads }) + remote.set(storageId as StorageId, { + timestamp, + heads: heads as UrlHeads, + }) changedHeads.push({ documentId, storageId: storageId as StorageId, - remoteHeads: heads, + remoteHeads: heads as UrlHeads, timestamp, }) } diff --git a/packages/automerge-repo/src/storage/StorageSubsystem.ts b/packages/automerge-repo/src/storage/StorageSubsystem.ts index b46afcc30..14a2b4571 100644 --- a/packages/automerge-repo/src/storage/StorageSubsystem.ts +++ b/packages/automerge-repo/src/storage/StorageSubsystem.ts @@ -9,7 +9,6 @@ import { keyHash, headsHash } from "./keyHash.js" import { chunkTypeFromKey } from "./chunkTypeFromKey.js" import * as Uuid from "uuid" import { EventEmitter } from "eventemitter3" -import { decodeHeads, UrlHeads } from "../AutomergeUrl.js" type StorageSubsystemEvents = { "document-loaded": (arg: {