diff --git a/ts/numbering/num.ts b/ts/numbering/num.ts index 2889b456ef..5a432732cc 100644 --- a/ts/numbering/num.ts +++ b/ts/numbering/num.ts @@ -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)); } -} \ No newline at end of file +}