diff --git a/ts/docx/paragraph/tab-stop.ts b/ts/docx/paragraph/tab-stop.ts index 1f079d31f6..f531f6ba84 100644 --- a/ts/docx/paragraph/tab-stop.ts +++ b/ts/docx/paragraph/tab-stop.ts @@ -10,7 +10,7 @@ class TabStop extends XmlComponent { class Tab extends XmlComponent { - constructor(value: string, position: any) { + constructor(value: string, position: string | number) { super("w:tab"); this.root.push(new Attributes({ val: value, diff --git a/ts/docx/xml-components/attributes.ts b/ts/docx/xml-components/attributes.ts index b47ad23261..126a040699 100644 --- a/ts/docx/xml-components/attributes.ts +++ b/ts/docx/xml-components/attributes.ts @@ -19,7 +19,7 @@ interface IAttributesProperties { footer?: string; gutter?: string; linePitch?: string; - pos?: string; + pos?: string | number; // Little strange. Perhaps it is normal. Need to clarify in the spec. } export class Attributes extends XmlAttributeComponent { diff --git a/ts/export/packer/express.ts b/ts/export/packer/express.ts index e0be8b3cae..088d5f3a11 100644 --- a/ts/export/packer/express.ts +++ b/ts/export/packer/express.ts @@ -3,12 +3,13 @@ import * as fs from "fs"; import { Document } from "../../docx/document"; import { Numbering } from "../../numbering"; import { Properties } from "../../properties"; +import { Styles } from "../../styles"; import { Packer } from "./packer"; export class ExpressPacker extends Packer { private res: express.Response; - constructor(document: Document, res: express.Response, styles?: any, properties?: Properties, numbering?: Numbering) { + constructor(document: Document, res: express.Response, styles?: Styles, properties?: Properties, numbering?: Numbering) { super(document, styles, properties, numbering); this.res = res; diff --git a/ts/export/packer/local.ts b/ts/export/packer/local.ts index ac07f0bb9d..6b8c371c94 100644 --- a/ts/export/packer/local.ts +++ b/ts/export/packer/local.ts @@ -2,12 +2,13 @@ import * as fs from "fs"; import { Document } from "../../docx/document"; import { Numbering } from "../../numbering"; import { Properties } from "../../properties"; +import { Styles } from "../../styles"; import { Packer } from "./packer"; export class LocalPacker extends Packer { private stream: fs.WriteStream; - constructor(document: Document, styles?: any, properties?: Properties, numbering?: Numbering) { + constructor(document: Document, styles?: Styles, properties?: Properties, numbering?: Numbering) { super(document, styles, properties, numbering); } diff --git a/ts/export/packer/packer.ts b/ts/export/packer/packer.ts index e8f0f96a63..e1104ec3da 100644 --- a/ts/export/packer/packer.ts +++ b/ts/export/packer/packer.ts @@ -17,7 +17,7 @@ export abstract class Packer { private properties: Properties; private numbering: Numbering; - constructor(document: Document, style?: any, properties?: Properties, numbering?: Numbering) { + constructor(document: Document, style?: Styles, properties?: Properties, numbering?: Numbering) { this.formatter = new Formatter(); this.document = document; this.style = style;