@tanstack/table-core 8.0.0-alpha.45 → 8.0.0-alpha.46

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.
@@ -24,7 +24,7 @@ export declare type ExpandedOptions<TGenerics extends AnyGenerics> = {
24
24
  };
25
25
  export declare type ToggleExpandedProps = {
26
26
  title?: string;
27
- onClick?: (event: MouseEvent | TouchEvent) => void;
27
+ onClick?: (event: unknown) => void;
28
28
  };
29
29
  export declare type ExpandedInstance<TGenerics extends AnyGenerics> = {
30
30
  _notifyExpandedReset: () => void;
@@ -62,7 +62,7 @@ export declare type GroupingOptions<TGenerics extends AnyGenerics> = {
62
62
  export declare type GroupingColumnMode = false | 'reorder' | 'remove';
63
63
  export declare type ToggleGroupingProps = {
64
64
  title?: string;
65
- onClick?: (event: MouseEvent | TouchEvent) => void;
65
+ onClick?: (event: unknown) => void;
66
66
  };
67
67
  export declare type GroupingInstance<TGenerics extends AnyGenerics> = {
68
68
  _notifyGroupingReset: () => void;
@@ -11,7 +11,7 @@ export declare type RowSelectionOptions<TGenerics extends AnyGenerics> = {
11
11
  enableSubRowSelection?: boolean | ((row: Row<TGenerics>) => boolean);
12
12
  };
13
13
  declare type ToggleRowSelectedProps = {
14
- onChange?: (e: MouseEvent | TouchEvent) => void;
14
+ onChange?: (e: unknown) => void;
15
15
  checked?: boolean;
16
16
  title?: string;
17
17
  indeterminate?: boolean;
@@ -50,11 +50,11 @@ export declare type SortingOptions<TGenerics extends AnyGenerics> = {
50
50
  sortDescFirst?: boolean;
51
51
  getSortedRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
52
52
  maxMultiSortColCount?: number;
53
- isMultiSortEvent?: (e: MouseEvent | TouchEvent) => boolean;
53
+ isMultiSortEvent?: (e: unknown) => boolean;
54
54
  };
55
55
  export declare type ToggleSortingProps = {
56
56
  title?: string;
57
- onClick?: (event: MouseEvent | TouchEvent) => void;
57
+ onClick?: (event: unknown) => void;
58
58
  };
59
59
  export declare type SortingInstance<TGenerics extends AnyGenerics> = {
60
60
  _notifySortingReset: () => void;
@@ -2094,8 +2094,8 @@
2094
2094
  enableRowSelection: true,
2095
2095
  enableMultiRowSelection: true,
2096
2096
  enableSubRowSelection: true // enableGroupingRowSelection: false,
2097
- // isAdditiveSelectEvent: (e: MouseEvent | TouchEvent) => !!e.metaKey,
2098
- // isInclusiveSelectEvent: (e: MouseEvent | TouchEvent) => !!e.shiftKey,
2097
+ // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
2098
+ // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
2099
2099
 
2100
2100
  };
2101
2101
  },