diff --git a/demo/48-vertical-align.ts b/demo/48-vertical-align.ts index 123a784993..36400de154 100644 --- a/demo/48-vertical-align.ts +++ b/demo/48-vertical-align.ts @@ -1,13 +1,13 @@ // Example of making content of section vertically aligned // Import from 'docx' rather than '../build' if you install from npm import * as fs from "fs"; -import { Document, Packer, Paragraph, SectionVerticalAlignValue, TextRun } from "../build"; +import { Document, Packer, Paragraph, VerticalAlign, TextRun } from "../build"; const doc = new Document({ sections: [ { properties: { - verticalAlign: SectionVerticalAlignValue.CENTER, + verticalAlign: VerticalAlign.CENTER, }, children: [ new Paragraph({ diff --git a/src/file/index.ts b/src/file/index.ts index d0c4b62282..1ab2a79cfd 100644 --- a/src/file/index.ts +++ b/src/file/index.ts @@ -18,3 +18,4 @@ export * from "./track-revision"; export * from "./shared"; export * from "./border"; export * from "./values"; +export * from "./vertical-align";