ts/styles linter warnings

This commit is contained in:
felipe
2017-03-09 09:45:01 +01:00
parent 2684f16579
commit f5144e6d72
12 changed files with 91 additions and 89 deletions

View File

@ -1,6 +1,6 @@
import {XmlComponent} from "../../../docx/xml-components";
interface LatentStyleExceptionAttributesProperties {
interface ILatentStyleExceptionAttributesProperties {
name?: string;
uiPriority?: string;
qFormat?: string;
@ -9,23 +9,23 @@ interface LatentStyleExceptionAttributesProperties {
}
export class LatentStyleExceptionAttributes extends XmlComponent {
private _attr: Object;
private _attr: ILatentStyleExceptionAttributesProperties;
xmlKeys = {
private xmlKeys = {
name: "w:name",
uiPriority: "w:uiPriority",
qFormat: "w:qFormat",
semiHidden: "w:semiHidden",
unhideWhenUsed: "w:unhideWhenUsed"
unhideWhenUsed: "w:unhideWhenUsed",
};
constructor(properties?: LatentStyleExceptionAttributesProperties) {
constructor(properties?: ILatentStyleExceptionAttributesProperties) {
super("_attr");
this._attr = properties;
if (!properties) {
this._attr = {};
}
this._attr["xmlKeys"] = this.xmlKeys;
//this._attr.xmlKeys = this.xmlKeys;
}
}
}

View File

@ -1,5 +1,5 @@
import {XmlComponent} from "../../../docx/xml-components";
import {LatentStyleExceptionAttributes} from "./attributes";
import { XmlComponent } from "../../../docx/xml-components";
import { LatentStyleExceptionAttributes } from "./attributes";
export class LatentStyleException extends XmlComponent {
@ -7,4 +7,4 @@ export class LatentStyleException extends XmlComponent {
super("w:lsdException");
this.root.push(attributes);
}
}
}

View File

@ -1,5 +1,5 @@
import {XmlComponent} from "../../docx/xml-components";
import {LatentStyleException} from "./exceptions";
import { XmlComponent } from "../../docx/xml-components";
import { LatentStyleException } from "./exceptions";
export class LatentStyles extends XmlComponent {
@ -7,7 +7,7 @@ export class LatentStyles extends XmlComponent {
super("w:latentStyles");
}
push(latentException: LatentStyleException): void {
public push(latentException: LatentStyleException): void {
this.root.push(latentException);
}
}
}