Update sdt-properties to make alias optional
This commit is contained in:
@ -2,8 +2,10 @@
|
||||
import { StringValueElement, XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class StructuredDocumentTagProperties extends XmlComponent {
|
||||
public constructor(alias: string) {
|
||||
public constructor(alias?: string) {
|
||||
super("w:sdtPr");
|
||||
if(typeof alias === 'string'){
|
||||
this.root.push(new StringValueElement("w:alias", alias));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user