From 58e7dbf445f5cd8779d7520a32b686a5b86fc20d Mon Sep 17 00:00:00 2001 From: Juan D Date: Thu, 22 Jun 2023 15:39:39 -0400 Subject: [PATCH] Revert "Modify sdt-properties to accommodate for children elements" This reverts commit f706d8e62d0068d14aac576e936fceaa93b60601. --- src/file/table-of-contents/sdt-properties.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/file/table-of-contents/sdt-properties.ts b/src/file/table-of-contents/sdt-properties.ts index 481235752a..f1f2c56304 100644 --- a/src/file/table-of-contents/sdt-properties.ts +++ b/src/file/table-of-contents/sdt-properties.ts @@ -1,25 +1,9 @@ // http://www.datypic.com/sc/ooxml/e-w_sdtPr-1.html -import { CheckBoxUtil } from "@file/checkbox"; import { StringValueElement, XmlComponent } from "@file/xml-components"; -export type SdtPrChild = - | CheckBoxUtil; - -export interface ISdtPropertiesOptions { - readonly children : readonly SdtPrChild[]; -} export class StructuredDocumentTagProperties extends XmlComponent { - public constructor(alias?: string, options?: ISdtPropertiesOptions) { + public constructor(alias: string) { super("w:sdtPr"); - - if(typeof alias === 'string'){ - this.root.push(new StringValueElement("w:alias", alias)); - } - - if(options?.children){ - for(const child of options.children){ - this.root.push(child) - } - } + this.root.push(new StringValueElement("w:alias", alias)); } }