You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're using module augmentation to extend `ColumnMeta`, note that it now requires a `TFeatures` parameter.
723
+
No more declaration merging required! (Although it still works if you want to keep using it)
724
+
725
+
Global declaration merging to extend `TableMeta` or `ColumnMeta` works exactly like it did in v8. The only change you need to make is updating the generics shape: both interfaces now take `TFeatures` as the first type parameter.
726
+
727
+
Optionally, v9 also adds a new way to declare meta types **per-table** without declaration merging. You can use type-only `tableMeta`/`columnMeta` slots on the `features` option, which only affect tables created with that `features` object:
- [ ] If you use `TableMeta`/`ColumnMeta`declaration merging, add the`TFeatures` generic to your augmentations (optionally, switch to the per-table `tableMeta`/`columnMeta` feature slots)
754
767
- [ ] (Optional) Use `tableOptions()` for composable configurations
755
768
- [ ] (Optional) Use `createTableHook` for reusable table patterns
Copy file name to clipboardExpand all lines: docs/framework/lit/guide/migrating.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -586,7 +586,11 @@ import type { StockFeatures } from '@tanstack/lit-table'
586
586
typePersonColumn=ColumnDef<StockFeatures, Person>
587
587
```
588
588
589
-
### `ColumnMeta` Generic Change
589
+
### `TableMeta`/`ColumnMeta` Typing Changes
590
+
591
+
No more declaration merging required! (Although it still works if you want to keep using it)
592
+
593
+
Global declaration merging works exactly like it did in v8. The only change you need to make is updating the generics shape: both interfaces now take `TFeatures` as the first type parameter.
That's all that's required if you want to keep declaring meta types globally.
604
+
605
+
Optionally, v9 also adds a new way to declare meta types **per-table** without declaration merging. You can use type-only `tableMeta`/`columnMeta` slots on the `features` option, which only affect tables created with that `features` object:
Copy file name to clipboardExpand all lines: docs/framework/preact/guide/migrating.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -573,9 +573,11 @@ import type { StockFeatures } from '@tanstack/preact-table'
573
573
typePersonColumn=ColumnDef<StockFeatures, Person>
574
574
```
575
575
576
-
### `ColumnMeta`Generic Change
576
+
### `TableMeta`/`ColumnMeta`Typing Changes
577
577
578
-
Module augmentation now includes `TFeatures`:
578
+
No more declaration merging required! (Although it still works if you want to keep using it)
579
+
580
+
Global declaration merging works exactly like it did in v8. The only change you need to make is updating the generics shape: both interfaces now take `TFeatures` as the first type parameter.
That's all that's required if you want to keep declaring meta types globally.
591
+
592
+
Optionally, v9 also adds a new way to declare meta types **per-table** without declaration merging. You can use type-only `tableMeta`/`columnMeta` slots on the `features` option, which only affect tables created with that `features` object:
- [ ] Ifyouuse`TableMeta`/`ColumnMeta` declaration merging, add the `TFeatures` generic to your augmentations (optionally, switch to the per-table `tableMeta`/`columnMeta` feature slots)
1041
1056
- [ ] (Optional) Add `table.Subscribe` for render optimizations
1042
1057
- [ ] (Optional) Subscribe to individual slices via `table.atoms.<slice>` + `useSelector` for the narrowest re-renders
1043
1058
- [ ] (Optional) Pass writable atoms via the new `atoms` option to own specific state slices externally
Copy file name to clipboardExpand all lines: docs/framework/solid/guide/migrating.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -542,7 +542,11 @@ import type { StockFeatures } from '@tanstack/solid-table'
542
542
typePersonColumn=ColumnDef<StockFeatures, Person>
543
543
```
544
544
545
-
### `ColumnMeta` Generic Change
545
+
### `TableMeta`/`ColumnMeta` Typing Changes
546
+
547
+
No more declaration merging required! (Although it still works if you want to keep using it)
548
+
549
+
Global declaration merging works exactly like it did in v8. The only change you need to make is updating the generics shape: both interfaces now take `TFeatures` as the first type parameter.
That's all that's required if you want to keep declaring meta types globally.
560
+
561
+
Optionally, v9 also adds a new way to declare meta types **per-table** without declaration merging. You can use type-only `tableMeta`/`columnMeta` slots on the `features` option, which only affect tables created with that `features` object:
Copy file name to clipboardExpand all lines: docs/framework/svelte/guide/migrating.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -621,7 +621,11 @@ import type { StockFeatures } from '@tanstack/svelte-table'
621
621
typePersonColumn=ColumnDef<StockFeatures, Person>
622
622
```
623
623
624
-
### `ColumnMeta` Generic Change
624
+
### `TableMeta`/`ColumnMeta` Typing Changes
625
+
626
+
No more declaration merging required! (Although it still works if you want to keep using it)
627
+
628
+
Global declaration merging works exactly like it did in v8. The only change you need to make is updating the generics shape: both interfaces now take `TFeatures` as the first type parameter.
That's all that's required if you want to keep declaring meta types globally.
639
+
640
+
Optionally, v9 also adds a new way to declare meta types **per-table** without declaration merging. You can use type-only `tableMeta`/`columnMeta` slots on the `features` option, which only affect tables created with that `features` object:
Copy file name to clipboardExpand all lines: docs/framework/vue/guide/migrating.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -567,7 +567,11 @@ import type { StockFeatures } from '@tanstack/vue-table'
567
567
typePersonColumn=ColumnDef<StockFeatures, Person>
568
568
```
569
569
570
-
### `ColumnMeta` Generic Change
570
+
### `TableMeta`/`ColumnMeta` Typing Changes
571
+
572
+
No more declaration merging required! (Although it still works if you want to keep using it)
573
+
574
+
Global declaration merging works exactly like it did in v8. The only change you need to make is updating the generics shape: both interfaces now take `TFeatures` as the first type parameter.
That's all that's required if you want to keep declaring meta types globally.
585
+
586
+
Optionally, v9 also adds a new way to declare meta types **per-table** without declaration merging. You can use type-only `tableMeta`/`columnMeta` slots on the `features` option, which only affect tables created with that `features` object:
0 commit comments