ts/styles linter warnings
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user