From 1a57a7225462734f649569c34ac0548c79e995f3 Mon Sep 17 00:00:00 2001 From: Foxhoundn Date: Thu, 10 Aug 2023 10:04:09 +0000 Subject: [PATCH] Fix TS typings --- src/components/Table/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Table/index.tsx b/src/components/Table/index.tsx index 45760207..7dfe506b 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/index.tsx @@ -44,7 +44,7 @@ import { import { IReqoreTableRowOptions } from './row'; export type TReqoreTableColumnContent = - | React.FC<{ [key: string]: any; _selectId?: string | number; _size: TSizes; _dataId: string }> + | ((data: IReqoreTableRowData) => any) | 'time-ago' | 'tag' | `tag:${TReqoreIntent}` @@ -52,7 +52,9 @@ export type TReqoreTableColumnContent = | 'title' | `title:${TReqoreIntent}` | 'text' - | `text:${TReqoreIntent}`; + | `text:${TReqoreIntent}` + | string + | number; export interface IReqoreTableColumn extends IReqoreIntent { dataId: string;