docx-rs/docx-wasm/js/json/comment.ts

27 lines
479 B
TypeScript
Raw Normal View History

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