Fixed TSLint Errors
This commit is contained in:
@ -2,12 +2,12 @@ import { XmlComponent } from "file/xml-components";
|
|||||||
import { HeaderReferenceAttributes } from "./header-reference-attributes";
|
import { HeaderReferenceAttributes } from "./header-reference-attributes";
|
||||||
|
|
||||||
export class HeaderReference extends XmlComponent {
|
export class HeaderReference extends XmlComponent {
|
||||||
constructor(order, ref_id) {
|
constructor(order: string, refID: number) {
|
||||||
super("w:headerReference");
|
super("w:headerReference");
|
||||||
this.root.push(
|
this.root.push(
|
||||||
new HeaderReferenceAttributes({
|
new HeaderReferenceAttributes({
|
||||||
type: order,
|
type: order,
|
||||||
id: `rId${ref_id}`,
|
id: `rId${refID}`,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,7 @@ import { CoreProperties, IPropertiesOptions } from "./core-properties";
|
|||||||
import { Document } from "./document";
|
import { Document } from "./document";
|
||||||
import { SectionPropertiesOptions } from "./document/body/section-properties/section-properties";
|
import { SectionPropertiesOptions } from "./document/body/section-properties/section-properties";
|
||||||
import { FooterWrapper } from "./footer-wrapper";
|
import { FooterWrapper } from "./footer-wrapper";
|
||||||
import { HeaderWrapper, FirstPageHeaderWrapper } from "./header-wrapper";
|
import { FirstPageHeaderWrapper, HeaderWrapper } from "./header-wrapper";
|
||||||
|
|
||||||
//import { HeaderWrapper2 } from "./header-wrapper2";
|
|
||||||
|
|
||||||
import { Media } from "./media";
|
import { Media } from "./media";
|
||||||
import { Numbering } from "./numbering";
|
import { Numbering } from "./numbering";
|
||||||
import { Hyperlink, Paragraph, PictureRun } from "./paragraph";
|
import { Hyperlink, Paragraph, PictureRun } from "./paragraph";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
||||||
|
|
||||||
class fidCharAttrs extends XmlAttributeComponent<{ type: "begin" | "end" | "separate" }> {
|
class FidCharAttrs extends XmlAttributeComponent<{ type: "begin" | "end" | "separate" }> {
|
||||||
protected xmlKeys = { type: "w:fldCharType" };
|
protected xmlKeys = { type: "w:fldCharType" };
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ class TextAttributes extends XmlAttributeComponent<{ space: "default" | "preserv
|
|||||||
export class Begin extends XmlComponent {
|
export class Begin extends XmlComponent {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("w:fldChar");
|
super("w:fldChar");
|
||||||
this.root.push(new fidCharAttrs({ type: "begin" }));
|
this.root.push(new FidCharAttrs({ type: "begin" }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,13 +26,13 @@ export class Page extends XmlComponent {
|
|||||||
export class Separate extends XmlComponent {
|
export class Separate extends XmlComponent {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("w:fldChar");
|
super("w:fldChar");
|
||||||
this.root.push(new fidCharAttrs({ type: "separate" }));
|
this.root.push(new FidCharAttrs({ type: "separate" }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class End extends XmlComponent {
|
export class End extends XmlComponent {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("w:fldChar");
|
super("w:fldChar");
|
||||||
this.root.push(new fidCharAttrs({ type: "end" }));
|
this.root.push(new FidCharAttrs({ type: "end" }));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -2,13 +2,13 @@
|
|||||||
import { Break } from "./break";
|
import { Break } from "./break";
|
||||||
import { Caps, SmallCaps } from "./caps";
|
import { Caps, SmallCaps } from "./caps";
|
||||||
import { Bold, Color, DoubleStrike, Italics, Size, Strike } from "./formatting";
|
import { Bold, Color, DoubleStrike, Italics, Size, Strike } from "./formatting";
|
||||||
|
import { Begin, End, Page, Separate } from "./page-number";
|
||||||
import { RunProperties } from "./properties";
|
import { RunProperties } from "./properties";
|
||||||
import { RunFonts } from "./run-fonts";
|
import { RunFonts } from "./run-fonts";
|
||||||
import { SubScript, SuperScript } from "./script";
|
import { SubScript, SuperScript } from "./script";
|
||||||
import { Style } from "./style";
|
import { Style } from "./style";
|
||||||
import { Tab } from "./tab";
|
import { Tab } from "./tab";
|
||||||
import { Underline } from "./underline";
|
import { Underline } from "./underline";
|
||||||
import { Begin, Page, End, Separate } from "./page-number";
|
|
||||||
|
|
||||||
import { XmlComponent } from "file/xml-components";
|
import { XmlComponent } from "file/xml-components";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user