@jasperoosthoek/react-toolbox 0.6.9 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/change-log.md CHANGED
@@ -283,4 +283,7 @@
283
283
  - Fix: always opening `EditModal` when clicking row of `DataTable` regardless of `showEditModalOnClickRow` prop
284
284
 
285
285
  ##### Version 0.6.9
286
- - `filterColumn` in `DataTable` can also be an array of strings or modifiers
286
+ - `filterColumn` in `DataTable` can also be an array of strings or modifiers
287
+
288
+ ##### Version 0.7.0
289
+ - Fix brackets in `filterColumn` type
@@ -37,7 +37,7 @@ export type DataTableProps<D extends any[]> = {
37
37
  columns: DataTableColumn<D[number]>[];
38
38
  rowsPerPage?: number | null;
39
39
  rowsPerPageOptions?: RowsPerPageOptions;
40
- filterColumn?: keyof D | ((row: D[number]) => string) | (keyof D | ((row: D[number]) => string))[];
40
+ filterColumn?: (keyof D) | ((row: D[number]) => string) | ((keyof D) | ((row: D[number]) => string))[];
41
41
  orderByDefault?: ((row: D[number]) => number) | string | null;
42
42
  orderByDefaultDirection?: OrderByDirection;
43
43
  onMove?: OnMove<D[number]>;