From 22163da65010ff82d4eb23fe14e659454ceb21dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E6=96=AF=E7=89=B9=E6=B4=9B?= Date: Fri, 9 Jul 2021 23:15:39 +0800 Subject: [PATCH 1/2] fix type for typescript 4.3.5 --- components/table/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/interface.ts b/components/table/interface.ts index 1784ecf21c..bdb01fdd98 100644 --- a/components/table/interface.ts +++ b/components/table/interface.ts @@ -60,7 +60,7 @@ export type ColumnProps = Partial> & { filterIcon?: string; filterDropdown?: string; customRender?: string; - [key: string]: string; + [key: string]: string | void; }; }; From 35c13d4f906683fdb75dd65b37285d755fd5a5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E6=96=AF=E7=89=B9=E6=B4=9B?= Date: Fri, 9 Jul 2021 23:28:24 +0800 Subject: [PATCH 2/2] Update interface.ts --- components/table/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/interface.ts b/components/table/interface.ts index bdb01fdd98..fe56d51334 100644 --- a/components/table/interface.ts +++ b/components/table/interface.ts @@ -60,7 +60,7 @@ export type ColumnProps = Partial> & { filterIcon?: string; filterDropdown?: string; customRender?: string; - [key: string]: string | void; + [key: string]: string | undefined; }; };