Skip to content

Commit 17aaefe

Browse files
committed
fix(json-crdt): 🐛 return specific type from getSnapshot()
1 parent 04b443e commit 17aaefe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json-crdt/model/api/ModelApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,5 +319,5 @@ export class ModelApi<N extends JsonNode = JsonNode> implements SyncStore<JsonNo
319319
// ---------------------------------------------------------------- SyncStore
320320

321321
public readonly subscribe = (callback: () => void) => this.onChanges.listen(() => callback());
322-
public readonly getSnapshot = () => this.view() as any;
322+
public readonly getSnapshot = () => this.view() as JsonNodeView<N>;
323323
}

0 commit comments

Comments
 (0)