2020-12-21 10:30:42 +02:00
|
|
|
import { ParagraphJSON, TableJSON } from "../";
|
|
|
|
|
|
|
|
export type CommentChildJSON = ParagraphJSON | TableJSON;
|
2020-12-15 15:33:01 +02:00
|
|
|
|
|
|
|
export type CommentJSON = {
|
|
|
|
id: number;
|
|
|
|
author: string;
|
|
|
|
date: string;
|
2020-12-21 10:30:42 +02:00
|
|
|
children: CommentChildJSON[];
|
2020-12-15 15:33:01 +02:00
|
|
|
parentCommentId: number | null;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type CommentRangeStartJSON = {
|
2020-12-16 04:59:48 +02:00
|
|
|
type: "commentRangeStart";
|
|
|
|
data: {
|
|
|
|
id: number;
|
|
|
|
comment: CommentJSON;
|
|
|
|
};
|
2020-12-15 15:33:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export type CommentRangeEndJSON = {
|
2020-12-16 04:59:48 +02:00
|
|
|
type: "commentRangeEnd";
|
|
|
|
data: {
|
|
|
|
id: number;
|
|
|
|
};
|
2020-12-15 15:33:01 +02:00
|
|
|
};
|