JSON to client (#5553)

This commit is contained in:
Tom Moor
2024-05-24 08:29:00 -04:00
committed by GitHub
parent e1e8257df7
commit d51267b8bc
71 changed files with 651 additions and 378 deletions

View File

@@ -374,4 +374,18 @@ export type JSONValue =
export type JSONObject = { [x: string]: JSONValue };
export type ProsemirrorData = JSONObject;
export type ProsemirrorData = {
type: string;
content: ProsemirrorData[];
text?: string;
attrs?: JSONObject;
marks?: {
type: string;
attrs: JSONObject;
}[];
};
export type ProsemirrorDoc = {
type: "doc";
content: ProsemirrorData[];
};