From f1cdf02e9c0dca3354f4eebd38edd2ba12075893 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 26 Mar 2021 00:44:51 +0300 Subject: fix: improve typings --- src/components/ListTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/ListTable.tsx') diff --git a/src/components/ListTable.tsx b/src/components/ListTable.tsx index 4bbe633..79e1ecd 100644 --- a/src/components/ListTable.tsx +++ b/src/components/ListTable.tsx @@ -1,10 +1,10 @@ import React from 'react'; import _ from 'lodash'; -interface Field { +export interface Field { key: string; label: string; - transform?: (text: string) => string; + transform?: (value: string) => JSX.Element | string; } interface Props { -- cgit v1.2.3