diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index 3b02d7ec..44de29e7 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -22,6 +22,7 @@ import { EditorOptions, CanCommands, ChainedCommands, + JSONContent, SingleCommands, TextSerializer, EditorEvents, @@ -401,7 +402,7 @@ export class Editor extends EventEmitter { /** * Get the document as JSON. */ - public getJSON(): Record { + public getJSON(): JSONContent { return this.state.doc.toJSON() }