fixed tslinting issues

This commit is contained in:
Dolan
2017-04-15 17:54:47 +01:00
parent dfff4b96bd
commit 410152441b
7 changed files with 6 additions and 6 deletions

View File

@ -140,7 +140,7 @@ export class Paragraph extends XmlComponent {
public spacing(params: ISpacingProperties): Paragraph { public spacing(params: ISpacingProperties): Paragraph {
this.properties.push(new Spacing(params)); this.properties.push(new Spacing(params));
return this; return this;
}; }
public keepNext(): Paragraph { public keepNext(): Paragraph {
this.properties.push(new KeepNext()); this.properties.push(new KeepNext());

View File

@ -1,7 +1,6 @@
import { XmlAttributeComponent, XmlComponent } from "../../../../../xml-components"; import { XmlAttributeComponent, XmlComponent } from "../../../../../xml-components";
import { GraphicData } from "./graphic-data"; import { GraphicData } from "./graphic-data";
interface IGraphicProperties { interface IGraphicProperties {
a: string; a: string;
} }

View File

@ -22,5 +22,5 @@ export abstract class XmlComponent extends BaseXmlComponent {
} }
} }
export * from "./attributes" export * from "./attributes";
export * from "./default-attributes"; export * from "./default-attributes";

View File

@ -204,7 +204,7 @@ class LevelBase extends XmlComponent {
public spacing(params: paragraph.ISpacingProperties): Level { public spacing(params: paragraph.ISpacingProperties): Level {
this.addParagraphProperty(new paragraph.Spacing(params)); this.addParagraphProperty(new paragraph.Spacing(params));
return this; return this;
}; }
public keepNext(): Level { public keepNext(): Level {
this.addParagraphProperty(new paragraph.KeepNext()); this.addParagraphProperty(new paragraph.KeepNext());

View File

@ -179,7 +179,7 @@ export class ParagraphStyle extends Style {
public spacing(params: paragraph.ISpacingProperties): ParagraphStyle { public spacing(params: paragraph.ISpacingProperties): ParagraphStyle {
this.addParagraphProperty(new paragraph.Spacing(params)); this.addParagraphProperty(new paragraph.Spacing(params));
return this; return this;
}; }
public keepNext(): ParagraphStyle { public keepNext(): ParagraphStyle {
this.addParagraphProperty(new paragraph.KeepNext()); this.addParagraphProperty(new paragraph.KeepNext());

View File

@ -20,7 +20,7 @@ describe("Drawing", () => {
it("should create a Drawing with correct root key", () => { it("should create a Drawing with correct root key", () => {
const newJson = Utility.jsonify(currentBreak); const newJson = Utility.jsonify(currentBreak);
assert.equal(newJson.rootKey, "w:drawing"); assert.equal(newJson.rootKey, "w:drawing");
console.log(JSON.stringify(newJson, null, 2)); // console.log(JSON.stringify(newJson, null, 2));
}); });
}); });
}); });

View File

@ -1,3 +1,4 @@
/* tslint:disable:no-unused-expression */
import { expect } from "chai"; import { expect } from "chai";
import { Paragraph } from "../../../docx/paragraph"; import { Paragraph } from "../../../docx/paragraph";
import { Table } from "../../../docx/table"; import { Table } from "../../../docx/table";