// add text contents with heading styles availables in the default base template

import { CreateDocx, OptionsParagraph } from "../../../build";
import * as fs from "fs";

const docx = new CreateDocx();

const optionsParagraphA: OptionsParagraph = {
    pStyle: "Heading1",
};
docx.addText("Heading 1 content.", optionsParagraphA);

const optionsParagraphB: OptionsParagraph = {
    pStyle: "Heading2",
};
docx.addText("Heading 2 content.", optionsParagraphB);

docx.save().then(contents => {
    fs.writeFileSync("addText_4.docx", Buffer.from(contents));
});
