JSON to client (#5553)
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user