deprecate toJSON

This commit is contained in:
Kevin Jahns 2020-12-22 17:04:31 +01:00
parent bbc688975d
commit 034463798d

View File

@ -217,6 +217,9 @@ export class Doc extends Observable {
/**
* Converts the entire document into a js object, recursively traversing each yjs type
* Doesn't log types that have not been defined (using ydoc.getType(..)).
*
* @deprecated Do not use this method and rather call toJSON directly on the shared types.
*
* @return {Object<string, any>}
*/