From 6583edeb1f2a015f31cea378f5440fa6a31a47f6 Mon Sep 17 00:00:00 2001 From: Jason Galea Date: Wed, 10 Nov 2021 09:24:18 +1000 Subject: [PATCH] fix: update getJSON return type to JSONContent (#2153) --- packages/core/src/Editor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() }