@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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/table-core",
3
3
  "author": "Tanner Linsley",
4
- "version": "8.0.0-beta.1",
4
+ "version": "8.0.0-beta.2",
5
5
  "description": "Headless UI for building powerful tables & datagrids for TS/JS.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/tanstack/table#readme",
@@ -73,9 +73,7 @@ export type CoreOptions<TGenerics extends TableGenerics> = {
73
73
  autoResetAll?: boolean
74
74
  mergeOptions?: <T>(defaultOptions: T, options: Partial<T>) => T
75
75
  meta?: TGenerics['TableMeta']
76
- getCoreRowModel: (
77
- instance: TableInstance<TGenerics>
78
- ) => () => RowModel<TGenerics>
76
+ getCoreRowModel: (instance: TableInstance<any>) => () => RowModel<any>
79
77
  getSubRows?: (
80
78
  originalRow: TGenerics['Row'],
81
79
  index: number
@@ -27,9 +27,7 @@ export type ExpandedOptions<TGenerics extends TableGenerics> = {
27
27
  onExpandedChange?: OnChangeFn<ExpandedState>
28
28
  autoResetExpanded?: boolean
29
29
  enableExpanding?: boolean
30
- getExpandedRowModel?: (
31
- instance: TableInstance<TGenerics>
32
- ) => () => RowModel<TGenerics>
30
+ getExpandedRowModel?: (instance: TableInstance<any>) => () => RowModel<any>
33
31
  getIsRowExpanded?: (row: Row<TGenerics>) => boolean
34
32
  getRowCanExpand?: (row: Row<TGenerics>) => boolean
35
33
  paginateExpandedRows?: boolean
@@ -102,9 +102,7 @@ export type FiltersOptions<TGenerics extends TableGenerics> = {
102
102
  manualFiltering?: boolean
103
103
  filterFromLeafRows?: boolean
104
104
  filterFns?: TGenerics['FilterFns']
105
- getFilteredRowModel?: (
106
- instance: TableInstance<TGenerics>
107
- ) => () => RowModel<TGenerics>
105
+ getFilteredRowModel?: (instance: TableInstance<any>) => () => RowModel<any>
108
106
 
109
107
  // Column
110
108
  onColumnFiltersChange?: OnChangeFn<ColumnFiltersState>
@@ -87,9 +87,7 @@ export type GroupingOptions<TGenerics extends TableGenerics> = {
87
87
  aggregationFns?: TGenerics['AggregationFns']
88
88
  onGroupingChange?: OnChangeFn<GroupingState>
89
89
  enableGrouping?: boolean
90
- getGroupedRowModel?: (
91
- instance: TableInstance<TGenerics>
92
- ) => () => RowModel<TGenerics>
90
+ getGroupedRowModel?: (instance: TableInstance<any>) => () => RowModel<any>
93
91
  groupedColumnMode?: false | 'reorder' | 'remove'
94
92
  }
95
93
 
@@ -26,9 +26,7 @@ export type PaginationOptions<TGenerics extends TableGenerics> = {
26
26
  manualPagination?: boolean
27
27
  onPaginationChange?: OnChangeFn<PaginationState>
28
28
  autoResetPageIndex?: boolean
29
- getPaginationRowModel?: (
30
- instance: TableInstance<TGenerics>
31
- ) => () => RowModel<TGenerics>
29
+ getPaginationRowModel?: (instance: TableInstance<any>) => () => RowModel<any>
32
30
  }
33
31
 
34
32
  export type PaginationDefaultOptions = {
@@ -76,9 +76,7 @@ export type SortingOptions<TGenerics extends TableGenerics> = {
76
76
  enableMultiRemove?: boolean
77
77
  enableMultiSort?: boolean
78
78
  sortDescFirst?: boolean
79
- getSortedRowModel?: (
80
- instance: TableInstance<TGenerics>
81
- ) => () => RowModel<TGenerics>
79
+ getSortedRowModel?: (instance: TableInstance<any>) => () => RowModel<any>
82
80
  maxMultiSortColCount?: number
83
81
  isMultiSortEvent?: (e: unknown) => boolean
84
82
  }