@tanstack/table-core 8.0.0-beta.1 → 8.0.0-beta.2

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.
@@ -25,7 +25,7 @@ export declare type CoreOptions<TGenerics extends TableGenerics> = {
25
25
  autoResetAll?: boolean;
26
26
  mergeOptions?: <T>(defaultOptions: T, options: Partial<T>) => T;
27
27
  meta?: TGenerics['TableMeta'];
28
- getCoreRowModel: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
28
+ getCoreRowModel: (instance: TableInstance<any>) => () => RowModel<any>;
29
29
  getSubRows?: (originalRow: TGenerics['Row'], index: number) => undefined | TGenerics['Row'][];
30
30
  getRowId?: (originalRow: TGenerics['Row'], index: number, parent?: Row<TGenerics>) => string;
31
31
  columns: ColumnDef<TGenerics>[];
@@ -17,7 +17,7 @@ export declare type ExpandedOptions<TGenerics extends TableGenerics> = {
17
17
  onExpandedChange?: OnChangeFn<ExpandedState>;
18
18
  autoResetExpanded?: boolean;
19
19
  enableExpanding?: boolean;
20
- getExpandedRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
20
+ getExpandedRowModel?: (instance: TableInstance<any>) => () => RowModel<any>;
21
21
  getIsRowExpanded?: (row: Row<TGenerics>) => boolean;
22
22
  getRowCanExpand?: (row: Row<TGenerics>) => boolean;
23
23
  paginateExpandedRows?: boolean;
@@ -61,7 +61,7 @@ export declare type FiltersOptions<TGenerics extends TableGenerics> = {
61
61
  manualFiltering?: boolean;
62
62
  filterFromLeafRows?: boolean;
63
63
  filterFns?: TGenerics['FilterFns'];
64
- getFilteredRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
64
+ getFilteredRowModel?: (instance: TableInstance<any>) => () => RowModel<any>;
65
65
  onColumnFiltersChange?: OnChangeFn<ColumnFiltersState>;
66
66
  enableColumnFilters?: boolean;
67
67
  globalFilterFn?: FilterFnOption<TGenerics>;
@@ -56,7 +56,7 @@ export declare type GroupingOptions<TGenerics extends TableGenerics> = {
56
56
  aggregationFns?: TGenerics['AggregationFns'];
57
57
  onGroupingChange?: OnChangeFn<GroupingState>;
58
58
  enableGrouping?: boolean;
59
- getGroupedRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
59
+ getGroupedRowModel?: (instance: TableInstance<any>) => () => RowModel<any>;
60
60
  groupedColumnMode?: false | 'reorder' | 'remove';
61
61
  };
62
62
  export declare type GroupingColumnMode = false | 'reorder' | 'remove';
@@ -15,7 +15,7 @@ export declare type PaginationOptions<TGenerics extends TableGenerics> = {
15
15
  manualPagination?: boolean;
16
16
  onPaginationChange?: OnChangeFn<PaginationState>;
17
17
  autoResetPageIndex?: boolean;
18
- getPaginationRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
18
+ getPaginationRowModel?: (instance: TableInstance<any>) => () => RowModel<any>;
19
19
  };
20
20
  export declare type PaginationDefaultOptions = {
21
21
  onPaginationChange: OnChangeFn<PaginationState>;
@@ -48,7 +48,7 @@ export declare type SortingOptions<TGenerics extends TableGenerics> = {
48
48
  enableMultiRemove?: boolean;
49
49
  enableMultiSort?: boolean;
50
50
  sortDescFirst?: boolean;
51
- getSortedRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
51
+ getSortedRowModel?: (instance: TableInstance<any>) => () => RowModel<any>;
52
52
  maxMultiSortColCount?: number;
53
53
  isMultiSortEvent?: (e: unknown) => boolean;
54
54
  };