fix: add index signature to TLStoreSnapshot for Automerge compatibility
TypeScript requires index signature for Automerge.Doc generic constraint. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1dc8f4f1b8
commit
53d3620cff
|
|
@ -14,6 +14,7 @@
|
||||||
import { Automerge, initializeAutomerge } from './automerge-init'
|
import { Automerge, initializeAutomerge } from './automerge-init'
|
||||||
|
|
||||||
// TLDraw store snapshot type (simplified - actual type is more complex)
|
// TLDraw store snapshot type (simplified - actual type is more complex)
|
||||||
|
// Index signature required for Automerge.Doc generic constraint
|
||||||
export interface TLStoreSnapshot {
|
export interface TLStoreSnapshot {
|
||||||
store: Record<string, any>
|
store: Record<string, any>
|
||||||
schema?: {
|
schema?: {
|
||||||
|
|
@ -21,6 +22,7 @@ export interface TLStoreSnapshot {
|
||||||
storeVersion: number
|
storeVersion: number
|
||||||
[key: string]: any
|
[key: string]: any
|
||||||
}
|
}
|
||||||
|
[key: string]: unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue