Change type of revision to a number

This commit is contained in:
Rowan Cockett
2021-10-08 15:52:12 -06:00
parent abbd620220
commit 47099d0468
4 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ export interface IPropertiesOptions {
readonly keywords?: string;
readonly description?: string;
readonly lastModifiedBy?: string;
readonly revision?: string;
readonly revision?: number;
readonly externalStyles?: string;
readonly styles?: IStylesOptions;
readonly numbering?: INumberingOptions;
@ -89,7 +89,7 @@ export class CoreProperties extends XmlComponent {
this.root.push(new StringContainer("cp:lastModifiedBy", options.lastModifiedBy));
}
if (options.revision) {
this.root.push(new StringContainer("cp:revision", options.revision));
this.root.push(new StringContainer("cp:revision", String(options.revision)));
}
this.root.push(new TimestampElement("dcterms:created"));
this.root.push(new TimestampElement("dcterms:modified"));