docx-rs/docx-wasm/js/doc-props.ts

21 lines
418 B
TypeScript
Raw Normal View History

2021-02-25 03:27:59 +02:00
export class DocProps {
_createdAt: string | null = null;
_updatedAt: string | null = null;
_customProperties: { [name: string]: string } = {};
2021-02-25 03:27:59 +02:00
createdAt(date: string) {
this._createdAt = date;
return this;
}
updatedAt(date: string) {
this._updatedAt = date;
return this;
}
customProperty(name: string, item: string) {
this._customProperties[name] = item;
return this;
}
2021-02-25 03:27:59 +02:00
}