From 51aa23b14654df0eb946595086a0487ca9d1967e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Siemienik=20Pawe=C5=82?= Date: Sun, 26 Jan 2020 13:30:47 +0100 Subject: [PATCH 1/4] Fix index.d.ts https://github.com/exceljs/exceljs/blob/9ec41e360d1700cd482e5391bac791db84f42c74/lib/doc/cell.js#L671 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index cfb3f12b4..ec99b17a9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -388,7 +388,7 @@ export interface CellModel { text?: string; hyperlink?: string; value?: CellValue; - master: Cell; + master: Cell|string; formula?: string; sharedFormula?: string; result?: string | number | any; From f612b81edba6577e8f9d1db09aca1c82691ad68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Siemienik=20Pawe=C5=82?= Date: Sun, 26 Jan 2020 13:40:58 +0100 Subject: [PATCH 2/4] Update index.d.ts --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index ec99b17a9..e859a39e0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -388,7 +388,7 @@ export interface CellModel { text?: string; hyperlink?: string; value?: CellValue; - master: Cell|string; + master: string; formula?: string; sharedFormula?: string; result?: string | number | any; From faaad1f126aa3a16a9272b8441751b2ea998a5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Siemienik=20Pawe=C5=82?= Date: Sun, 26 Jan 2020 14:07:33 +0100 Subject: [PATCH 3/4] Update index.d.ts --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index e859a39e0..e146e63d1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -407,7 +407,7 @@ export interface Cell extends Style, Address { readonly text: string; readonly fullAddress: { sheetName: string; - address: Address; + address: string; row: Row; col: Column; }; From 0c4ce918794dc4d42e62524c4308aa19efd1cb2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Siemienik=20Pawe=C5=82?= Date: Sun, 26 Jan 2020 22:06:43 +0100 Subject: [PATCH 4/4] Update column typing --- index.d.ts | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index e146e63d1..541730170 100644 --- a/index.d.ts +++ b/index.d.ts @@ -614,9 +614,22 @@ export interface Column { * Column letter key */ readonly letter: string; -} + readonly number: number; + readonly worksheet: Worksheet; + readonly isCustomWidth: boolean; + readonly headers: string[]; + readonly isDefault: boolean; + readonly headerCount: number; + border: Partial; + fill: Fill; + numFmt: string + font: Partial; + alignment: Partial; + protection: Partial; + + toString(): string + equivalentTo(other: Column): boolean -export interface ColumnExtension extends Partial