diff --git a/ts/docx/document/body/body.ts b/ts/docx/document/body/body.ts new file mode 100644 index 0000000000..993d353573 --- /dev/null +++ b/ts/docx/document/body/body.ts @@ -0,0 +1,12 @@ +import { XmlComponent } from "../../xml-components"; + +export class Body extends XmlComponent { + + constructor() { + super("w:body"); + } + + public push(component: XmlComponent): void { + this.root.push(component); + } +} diff --git a/ts/docx/document/body/index.ts b/ts/docx/document/body/index.ts index 993d353573..93f4529388 100644 --- a/ts/docx/document/body/index.ts +++ b/ts/docx/document/body/index.ts @@ -1,12 +1 @@ -import { XmlComponent } from "../../xml-components"; - -export class Body extends XmlComponent { - - constructor() { - super("w:body"); - } - - public push(component: XmlComponent): void { - this.root.push(component); - } -} +export * from "./body";