Skip to content

Commit a0b4583

Browse files
authored
Add TS declarations of Workbook properties (#1656)
* types(Workbook): add properties to workbook class * add semicolons
1 parent 8e9dee9 commit a0b4583

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,12 +1682,19 @@ export interface WorkbookModel {
16821682
}
16831683

16841684
export class Workbook {
1685+
category: string;
1686+
company: string;
16851687
creator: string;
1688+
description: string;
1689+
keywords: string;
16861690
lastModifiedBy: string;
16871691
created: Date;
1692+
manager: string;
16881693
modified: Date;
16891694
lastPrinted: Date;
16901695
properties: WorkbookProperties;
1696+
subject: string;
1697+
title: string;
16911698

16921699
/**
16931700
* Workbook calculation Properties

lib/doc/workbook.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@ const CSV = require('../csv/csv');
1313

1414
class Workbook {
1515
constructor() {
16+
this.category = '';
17+
this.company = '';
1618
this.created = new Date();
19+
this.description = '';
20+
this.keywords = '';
21+
this.manager = '';
1722
this.modified = this.created;
1823
this.properties = {};
1924
this.calcProperties = {};
2025
this._worksheets = [];
26+
this.subject = '';
27+
this.title = '';
2128
this.views = [];
2229
this.media = [];
2330
this._definedNames = new DefinedNames();

0 commit comments

Comments
 (0)