fixed types

This commit is contained in:
Erik Jan de Wit 2021-06-29 08:40:41 +02:00
parent 32492152aa
commit f94873f99a

View file

@ -120,7 +120,10 @@ export type Action<T> = IAction & {
onRowClick?: (row: T) => Promise<boolean> | void; onRowClick?: (row: T) => Promise<boolean> | void;
}; };
export type DataListProps<T> = Omit<TableProps, "rows" | "cells"> & { export type DataListProps<T> = Omit<
TableProps,
"rows" | "cells" | "onSelect"
> & {
loader: (first?: number, max?: number, search?: string) => Promise<T[]>; loader: (first?: number, max?: number, search?: string) => Promise<T[]>;
onSelect?: (value: T[]) => void; onSelect?: (value: T[]) => void;
canSelectAll?: boolean; canSelectAll?: boolean;