@tanstack/table-core 8.3.5 → 8.3.6

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.3.5",
4
+ "version": "8.3.6",
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/core/cell.ts CHANGED
@@ -1,9 +1,5 @@
1
1
  import { RowData, Cell, Column, Row, Table } from '../types'
2
- import { IsAny, IsKnown } from '../utils'
3
-
4
- type NoInfer<T> = [T][T extends any ? 0 : never]
5
-
6
- type Getter<TValue> = <TTValue = TValue>() => NoInfer<TTValue>
2
+ import { Getter } from '../utils'
7
3
 
8
4
  export type CellContext<TData extends RowData, TValue> = {
9
5
  table: Table<TData>
package/src/types.ts CHANGED
@@ -193,5 +193,3 @@ export type Header<TData extends RowData, TValue> = CoreHeader<TData, TValue> &
193
193
  ColumnSizingHeader
194
194
 
195
195
  export type HeaderGroup<TData extends RowData> = CoreHeaderGroup<TData>
196
-
197
- export type NoInfer<A extends any> = [A][A extends any ? 0 : never]
package/src/utils.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { NoInfer, TableState, Updater } from './types'
1
+ import { TableState, Updater } from './types'
2
2
 
3
3
  export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>
4
4
  export type RequiredKeys<T, K extends keyof T> = Omit<T, K> &
@@ -65,6 +65,10 @@ export type DeepValue<T, TProp> = T extends Record<string | number, any>
65
65
  : T[TProp & string]
66
66
  : never
67
67
 
68
+ export type NoInfer<T> = [T][T extends any ? 0 : never]
69
+
70
+ export type Getter<TValue> = <TTValue = TValue>() => NoInfer<TTValue>
71
+
68
72
  ///
69
73
 
70
74
  export function functionalUpdate<T>(updater: Updater<T>, input: T): T {