mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
[react-bootstrap-table2-toolkit] narrow types
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user