From 22653c799c0bb67cc409854ac3f14938fcb49b18 Mon Sep 17 00:00:00 2001 From: Andrew Hyndman Date: Wed, 22 Jul 2020 21:47:55 -0700 Subject: [PATCH] Document the doc.toJSON method --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d859b7f5..6859ccae 100644 --- a/README.md +++ b/README.md @@ -571,6 +571,8 @@ triggers a single change event.
You can specify an optional origintransaction.origin and on('update', (update, origin) => ..). + toJSON():any +
Converts the entire document into a js object, recursively traversing each yjs type.
get(string, Y.[TypeClass]):[Type]
Define a shared type.
getArray(string):Y.Array