Turn methods into "add()"

This commit is contained in:
Dolan
2019-06-25 23:17:56 +01:00
parent 3ef8f5311d
commit e2574ec23b
55 changed files with 253 additions and 262 deletions

View File

@ -5,10 +5,10 @@ import { Document, Packer, Paragraph } from "../build";
const doc = new Document();
doc.addParagraph(new Paragraph("Hello World"));
doc.add(new Paragraph("Hello World"));
doc.Header.addParagraph(new Paragraph("Header text"));
doc.Footer.addParagraph(new Paragraph("Footer text"));
doc.Header.add(new Paragraph("Header text"));
doc.Footer.add(new Paragraph("Footer text"));
const packer = new Packer();