Skip to content

Commit

Permalink
fix: update getJSON return type to JSONContent (#2153)
Browse files Browse the repository at this point in the history
  • Loading branch information
lecstor authored Nov 9, 2021
1 parent 38b533d commit 6583ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
EditorOptions,
CanCommands,
ChainedCommands,
JSONContent,
SingleCommands,
TextSerializer,
EditorEvents,
Expand Down Expand Up @@ -401,7 +402,7 @@ export class Editor extends EventEmitter<EditorEvents> {
/**
* Get the document as JSON.
*/
public getJSON(): Record<string, any> {
public getJSON(): JSONContent {
return this.state.doc.toJSON()
}

Expand Down

0 comments on commit 6583ede

Please sign in to comment.