[react-bootstrap-table2-toolkit] narrow types

This commit is contained in:
Wlad Meixner
2020-03-15 21:10:32 +01:00
parent f325fa557e
commit 50dd66722c

View File

@@ -17,14 +17,14 @@ export interface InjectedSearchProps {
onClear: () => void;
}
export type SearchMartchProps<T> = {
export type SearchMartchProps<T extends object = any> = {
searchText: string;
value: string;
column: ColumnDescription<T>;
row: T;
};
export type TableSearchProps<T> = Partial<{
export type TableSearchProps<T extends object = any> = Partial<{
searchFormatted: boolean;
defaultSearch: string;
placeholder: string;