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

25 lines
405 B
TypeScript

import { ParagraphJSON } from "../";
export type CommentJSON = {
id: number;
author: string;
date: string;
paragraph: ParagraphJSON;
parentCommentId: number | null;
};
export type CommentRangeStartJSON = {
type: "commentRangeStart";
data: {
id: number;
comment: CommentJSON;
};
};
export type CommentRangeEndJSON = {
type: "commentRangeEnd";
data: {
id: number;
};
};