Fixed TSLint Errors
This commit is contained in:
@ -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}`,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export class TitlePageAttributes extends XmlAttributeComponent<IHeaderReferenceA
|
||||
protected xmlKeys = {
|
||||
value: "w:val",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,4 @@ export class TitlePage extends XmlComponent {
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user