Commit 811c282
fix(tanstack): EntityGrid accepts id-less projection rows
Relax the row-type bound from { id?: number | string } to object. The grid
keys rows by index (no getRowId) and never reads id, so the stricter bound
needlessly failed TS's weak-type check against view-model rows that have a
composite identity and no id column — which the codegen explicitly emits grids
for. Backward-compatible: rows that do have id still satisfy object.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5e848b3 commit 811c282
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
0 commit comments