From f94873f99a6507070160d82cf782a4235c2d6d52 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 29 Jun 2021 08:40:41 +0200 Subject: [PATCH] fixed types --- src/components/table-toolbar/KeycloakDataTable.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/table-toolbar/KeycloakDataTable.tsx b/src/components/table-toolbar/KeycloakDataTable.tsx index d7839aba45..b4c4549cdc 100644 --- a/src/components/table-toolbar/KeycloakDataTable.tsx +++ b/src/components/table-toolbar/KeycloakDataTable.tsx @@ -120,7 +120,10 @@ export type Action = IAction & { onRowClick?: (row: T) => Promise | void; }; -export type DataListProps = Omit & { +export type DataListProps = Omit< + TableProps, + "rows" | "cells" | "onSelect" +> & { loader: (first?: number, max?: number, search?: string) => Promise; onSelect?: (value: T[]) => void; canSelectAll?: boolean;