fix numbering/num.ts linter warnings

This commit is contained in:
felipe
2017-03-08 17:16:51 +01:00
parent ae70c2dfde
commit 6e6a06eba4

View File

@ -1,24 +1,24 @@
import {XmlComponent, Attributes, XmlAttributeComponent} from "../docx/xml-components";
import { Attributes, XmlAttributeComponent, XmlComponent } from "../docx/xml-components";
class AbstractNumId extends XmlComponent {
constructor(value: number) {
super("w:abstractNumId");
this.root.push(new Attributes({
val: value
val: value,
}));
}
}
interface NumAttributesProperties {
interface INumAttributesProperties {
numId: number;
}
class NumAttributes extends XmlAttributeComponent {
constructor(properties: NumAttributesProperties) {
constructor(properties: INumAttributesProperties) {
super({
numId: "w:numId"
numId: "w:numId",
}, properties);
}
}
@ -28,8 +28,8 @@ export class Num extends XmlComponent {
constructor(numId: number, abstractNumId: number) {
super("w:num");
this.root.push(new NumAttributes({
numId: numId
numId: numId,
}));
this.root.push(new AbstractNumId(abstractNumId));
}
}
}