import {XmlComponent, Attributes} from "../xml-components"; import {Run} from "../run"; class Break implements XmlComponent { private br: Array; xmlKeys = { br: 'w:br' } constructor() { this.br = new Array(); this.br.push(new Attributes({ type: "page" })) } } export class PageBreak extends Run { constructor() { super(); this.r.push(new Break()); } }