mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 12:57:20 +00:00
chore: fix example type err
This commit is contained in:
parent
83ae5930bc
commit
cdc084627d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue