Change API of track revisions to declarative

This commit is contained in:
Dolan
2020-11-04 00:00:16 +00:00
parent 37e610d2b3
commit 34b2029efe
4 changed files with 37 additions and 12 deletions

View File

@ -53,6 +53,9 @@ In addtion to marking text as inserted or deleted, change tracking can also be a
```ts
import { Document } from "docx";
const doc = new Document({});
doc.Settings.addTrackRevisions()
```
const doc = new Document({
features: {
trackRevisions: true,
},
});
```