@tanstack/table-core 8.5.5 → 8.5.8
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/utils.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +308 -308
- package/build/types/index.d.ts +3 -3
- 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/types.ts +1 -1
- package/src/utils.ts +2 -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.5.
|
|
4
|
+
"version": "8.5.8",
|
|
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",
|
package/src/types.ts
CHANGED
|
@@ -240,7 +240,7 @@ export type AccessorFnColumnDef<
|
|
|
240
240
|
|
|
241
241
|
export type AccessorKeyColumnDef<TData extends RowData, TValue = unknown> = {
|
|
242
242
|
id?: string
|
|
243
|
-
} & ColumnIdentifiers<TData, TValue
|
|
243
|
+
} & Partial<ColumnIdentifiers<TData, TValue>> &
|
|
244
244
|
ColumnDefBase<TData, TValue> & {
|
|
245
245
|
accessorKey: DeepKeys<TData>
|
|
246
246
|
}
|
package/src/utils.ts
CHANGED
|
@@ -24,11 +24,11 @@ type ComputeRange<
|
|
|
24
24
|
> = Result['length'] extends N
|
|
25
25
|
? Result
|
|
26
26
|
: ComputeRange<N, [...Result, Result['length']]>
|
|
27
|
-
type
|
|
27
|
+
type Index40 = ComputeRange<40>[number]
|
|
28
28
|
|
|
29
29
|
// Is this type a tuple?
|
|
30
30
|
type IsTuple<T> = T extends readonly any[] & { length: infer Length }
|
|
31
|
-
? Length extends
|
|
31
|
+
? Length extends Index40
|
|
32
32
|
? T
|
|
33
33
|
: never
|
|
34
34
|
: never
|