From 93a8cc32aafc711b61c485868e15ecb3837272b5 Mon Sep 17 00:00:00 2001 From: Samuel Hulla Date: Fri, 16 Oct 2020 20:35:43 +0200 Subject: [PATCH 1/2] Fix: ExcelCell typing --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 1ee4149a..afae8e30 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -30,7 +30,7 @@ declare module 'react-data-export' { export type ExcelValue = string | number | Date | boolean; export interface ExcelCell { - value: ExcelCell; + value: ExcelCellValue; style: ExcelStyle; } From 4309d2cc56c61ec8accd35284c70c115884f1963 Mon Sep 17 00:00:00 2001 From: Samuel Hulla Date: Fri, 16 Oct 2020 20:36:36 +0200 Subject: [PATCH 2/2] Fix: Docs: ExcelCell typing --- types/types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/types.md b/types/types.md index 1deec32a..69bf15ae 100644 --- a/types/types.md +++ b/types/types.md @@ -29,7 +29,7 @@ type ExcelCellData = ExcelValue | ExcelCell; type ExcelValue = string | number | Date | boolean; interface ExcelCell { - value: ExcelCell; + value: ExcelCellValue; style: ExcelStyle; }