From 532d2c98f57aa018ff63ed40fbdd3e415454364d Mon Sep 17 00:00:00 2001 From: skalma <38102328+skalma@users.noreply.github.com> Date: Tue, 20 Aug 2019 20:55:15 +0200 Subject: [PATCH] Added returntype JSX.Element to option customSearchRender (#37769) Added returntype JSX.Element to option customSearchRender in MUIDataTableOptions --- types/mui-datatables/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mui-datatables/index.d.ts b/types/mui-datatables/index.d.ts index b897dd53b1..ec78de5149 100644 --- a/types/mui-datatables/index.d.ts +++ b/types/mui-datatables/index.d.ts @@ -141,7 +141,7 @@ export interface MUIDataTableOptions { changePage: number ) => React.ReactNode; customSearch?: (searchQuery: string, currentRow: any[], columns: any[]) => boolean; - customSearchRender?: (searchText: string, handleSearch: any, hideSearch: any, options: any) => React.Component; + customSearchRender?: (searchText: string, handleSearch: any, hideSearch: any, options: any) => React.Component | JSX.Element; customSort?: (data: any[], colIndex: number, order: string) => any[]; customToolbar?: () => React.ReactNode; customToolbarSelect?: (