chore: fix example type err

This commit is contained in:
Zixuan Chen 2023-11-07 19:48:31 +08:00
parent 83ae5930bc
commit cdc084627d
No known key found for this signature in database

View file

@ -5,7 +5,7 @@
import "quill/dist/quill.bubble.css";
import "quill/dist/quill.snow.css";
import { QuillBinding } from "./binding";
import { Loro, setPanicHook, convertVersionToReadableMap } from "loro-crdt";
import { Loro, setPanicHook, toReadableVersion } from "loro-crdt";
setPanicHook();
@ -64,7 +64,7 @@
}
Promise.resolve().then(() => {
const version = text.version();
const map = convertVersionToReadableMap(version);
const map = toReadableVersion(version);
const versionObj = {};
for (const [key, value] of map) {
versionObj[key.toString()] = value;