Fixed TSLint Errors

This commit is contained in:
Tyler Bell
2018-05-18 09:21:27 -06:00
parent 7296c9e744
commit 7584671312
9 changed files with 17 additions and 20 deletions

View File

@ -2,12 +2,12 @@ import { XmlComponent } from "file/xml-components";
import { HeaderReferenceAttributes } from "./header-reference-attributes";
export class HeaderReference extends XmlComponent {
constructor(order, ref_id) {
constructor(order: string, refID: number) {
super("w:headerReference");
this.root.push(
new HeaderReferenceAttributes({
type: order,
id: `rId${ref_id}`,
id: `rId${refID}`,
}),
);
}

View File

@ -53,13 +53,13 @@ export class SectionProperties extends XmlComponent {
);
this.root.push(new Columns(mergedOptions.space));
this.root.push(new DocumentGrid(mergedOptions.linePitch));
this.root.push(new HeaderReference("default",3));
this.root.push(new HeaderReference("default", 3));
if (mergedOptions.differentFirstPageHeader) {
this.root.push(new HeaderReference("first",5));
this.root.push(new HeaderReference("first", 5));
this.root.push(new TitlePage());
}
this.root.push(new FooterReference());
}
}

View File

@ -8,4 +8,4 @@ export class TitlePageAttributes extends XmlAttributeComponent<IHeaderReferenceA
protected xmlKeys = {
value: "w:val",
};
}
}

View File

@ -10,4 +10,4 @@ export class TitlePage extends XmlComponent {
}),
);
}
}
}