From cb6d2ba98030f70a7797931ae4c040981a2caa15 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 16 Nov 2025 05:04:54 -0700 Subject: [PATCH] fix: add type cast for currentDoc to fix TypeScript error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cast handle.doc() to any to fix TypeScript error about missing 'store' property. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/automerge/useAutomergeSyncRepo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/automerge/useAutomergeSyncRepo.ts b/src/automerge/useAutomergeSyncRepo.ts index 92feb39..a69abc8 100644 --- a/src/automerge/useAutomergeSyncRepo.ts +++ b/src/automerge/useAutomergeSyncRepo.ts @@ -137,7 +137,7 @@ export function useAutomergeSync(config: AutomergeSyncConfig): TLStoreWithStatus await handle.whenReady() // Initialize document with default store if it's new/empty - const currentDoc = handle.doc() + const currentDoc = handle.doc() as any if (!currentDoc || !currentDoc.store || Object.keys(currentDoc.store).length === 0) { console.log("📝 Document is new/empty - initializing with default store")