Fix demo
This commit is contained in:
@ -10,9 +10,10 @@ fs.readFile(filePath, (err, data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
importDocx.extract(data).then((templateDocument) => {
|
importDocx.extract(data).then((templateDocument) => {
|
||||||
|
// This any needs fixing
|
||||||
const options = {
|
const options = {
|
||||||
templateDocument,
|
templateDocument,
|
||||||
};
|
} as any;
|
||||||
|
|
||||||
const doc = new Document(options);
|
const doc = new Document(options);
|
||||||
const paragraph = new Paragraph("Hello World");
|
const paragraph = new Paragraph("Hello World");
|
||||||
|
Reference in New Issue
Block a user