@tanstack/table-core 8.0.0-alpha.18 → 8.0.0-alpha.19
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/build/cjs/createTable.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +254 -254
- package/build/types/createTable.d.ts +4 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/createTable.tsx +10 -2
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-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.19",
|
|
5
5
|
"description": "Hooks for building lightweight, fast and extendable datagrids for React",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/react-table#readme",
|
package/src/createTable.tsx
CHANGED
|
@@ -64,7 +64,12 @@ export type Table<TGenerics extends PartialGenerics> = {
|
|
|
64
64
|
) => ColumnDef<TGenerics>
|
|
65
65
|
createDisplayColumn: (
|
|
66
66
|
column: PartialKeys<
|
|
67
|
-
|
|
67
|
+
Overwrite<
|
|
68
|
+
_NonGenerated<ColumnDef<TGenerics>>, {
|
|
69
|
+
// This is sketchy, but allows the column helper pattern we want.
|
|
70
|
+
// Someone smarter than me could probably do this better.
|
|
71
|
+
columns?: ColumnDef<any>[]
|
|
72
|
+
}>,
|
|
68
73
|
'accessorFn' | 'accessorKey'
|
|
69
74
|
>
|
|
70
75
|
) => ColumnDef<TGenerics>
|
|
@@ -93,7 +98,10 @@ export type Table<TGenerics extends PartialGenerics> = {
|
|
|
93
98
|
: never,
|
|
94
99
|
{
|
|
95
100
|
accessorFn?: never
|
|
96
|
-
accessorKey?: never
|
|
101
|
+
accessorKey?: never,
|
|
102
|
+
// This is sketchy, but allows the column helper pattern we want.
|
|
103
|
+
// Someone smarter than me could probably do this better.
|
|
104
|
+
columns?: ColumnDef<any>[]
|
|
97
105
|
}
|
|
98
106
|
>
|
|
99
107
|
) => ColumnDef<
|