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

@ -34,6 +34,9 @@ export interface IPropertiesOptions {
readonly [key: string]: IInternalHyperlinkDefinition | IExternalHyperlinkDefinition;
};
readonly background?: IDocumentBackgroundOptions;
readonly features?: {
readonly trackRevisions?: boolean;
};
}
export class CoreProperties extends XmlComponent {

View File

@ -170,6 +170,12 @@ export class File {
this.hyperlinkCache = cache;
}
if (options.features) {
if (options.features.trackRevisions) {
this.settings.addTrackRevisions();
}
}
}
public addSection({