From d4b9e0b5e274317f84504e5c67fbde2e20003efe Mon Sep 17 00:00:00 2001 From: bokuweb Date: Wed, 16 Dec 2020 11:59:48 +0900 Subject: [PATCH] fix: json type (#214) --- docx-wasm/js/json/comment.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docx-wasm/js/json/comment.ts b/docx-wasm/js/json/comment.ts index 2dcb47d..fb9cb21 100644 --- a/docx-wasm/js/json/comment.ts +++ b/docx-wasm/js/json/comment.ts @@ -9,10 +9,16 @@ export type CommentJSON = { }; export type CommentRangeStartJSON = { - id: number; - comment: CommentJSON; + type: "commentRangeStart"; + data: { + id: number; + comment: CommentJSON; + }; }; export type CommentRangeEndJSON = { - id: number; + type: "commentRangeEnd"; + data: { + id: number; + }; };