added stdPr and stdContent to table of contents
This commit is contained in:
12
src/file/table-of-contents/alias.ts
Normal file
12
src/file/table-of-contents/alias.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
||||
|
||||
class AliasAttributes extends XmlAttributeComponent<{ alias: string }> {
|
||||
protected xmlKeys = { alias: "w:val" };
|
||||
}
|
||||
|
||||
export class Alias extends XmlComponent {
|
||||
constructor(alias: string) {
|
||||
super("w:alias");
|
||||
this.root.push(new AliasAttributes({ alias }));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user