From 79363c2c2cefd0b89a2e3e5d22a96143b873588d Mon Sep 17 00:00:00 2001 From: Juan D Date: Thu, 22 Jun 2023 14:43:10 -0400 Subject: [PATCH] Modify Pargraph's children to accept CheckBox --- src/file/paragraph/paragraph.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/file/paragraph/paragraph.ts b/src/file/paragraph/paragraph.ts index a12b88df6a..feafb1450f 100644 --- a/src/file/paragraph/paragraph.ts +++ b/src/file/paragraph/paragraph.ts @@ -6,6 +6,7 @@ import { FileChild } from "@file/file-child"; import { TargetModeType } from "../relationships/relationship/relationship"; import { DeletedTextRun, InsertedTextRun } from "../track-revision"; +import { CheckBox } from "../checkbox"; import { ColumnBreak, PageBreak } from "./formatting/break"; import { Bookmark, ConcreteHyperlink, ExternalHyperlink, InternalHyperlink } from "./links"; import { Math } from "./math"; @@ -33,7 +34,8 @@ export type ParagraphChild = | Comment | CommentRangeStart | CommentRangeEnd - | CommentReference; + | CommentReference + | CheckBox; export interface IParagraphOptions extends IParagraphPropertiesOptions { readonly text?: string;