fix: update getJSON return type to JSONContent (#2153)
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
|||||||
EditorOptions,
|
EditorOptions,
|
||||||
CanCommands,
|
CanCommands,
|
||||||
ChainedCommands,
|
ChainedCommands,
|
||||||
|
JSONContent,
|
||||||
SingleCommands,
|
SingleCommands,
|
||||||
TextSerializer,
|
TextSerializer,
|
||||||
EditorEvents,
|
EditorEvents,
|
||||||
@@ -401,7 +402,7 @@ export class Editor extends EventEmitter<EditorEvents> {
|
|||||||
/**
|
/**
|
||||||
* Get the document as JSON.
|
* Get the document as JSON.
|
||||||
*/
|
*/
|
||||||
public getJSON(): Record<string, any> {
|
public getJSON(): JSONContent {
|
||||||
return this.state.doc.toJSON()
|
return this.state.doc.toJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user