Make API simplier with interfaces

This commit is contained in:
Dolan
2018-09-25 20:05:35 +01:00
parent 00efedaa09
commit 3a42f2a2f0
6 changed files with 52 additions and 38 deletions

View File

@ -5,10 +5,10 @@ import { XmlComponent } from "file/xml-components";
import { SdtContent } from "./sdt-content";
import { SdtProperties } from "./sdt-properties";
import { TableOfContentsInstruction } from "./table-of-contents-instruction";
import { TableOfContentsProperties } from "./table-of-contents-properties";
import { ITableOfContentsProperties } from "./table-of-contents-properties";
export class TableOfContents extends XmlComponent {
constructor(alias: string = "Table of Contents", properties?: TableOfContentsProperties) {
constructor(alias: string = "Table of Contents", properties?: ITableOfContentsProperties) {
super("w:sdt");
this.root.push(new SdtProperties(alias));