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
Confirmed this is still present on current main. Generated route children use a keyed object for type inference, but _addFileChildren stores Object.values(children) at runtime. This leaves routeTree.children typed as an object even though its runtime value is an array.
The object representation was introduced for TypeScript performance in #1564, so a fix will need to preserve that type-level structure while correctly typing the runtime children property.
Activity
LadyBluenotes commentedon Jul 15, 2026
Confirmed this is still present on current main. Generated route children use a keyed object for type inference, but
_addFileChildrenstoresObject.values(children)at runtime. This leavesrouteTree.childrentyped as an object even though its runtime value is an array.The object representation was introduced for TypeScript performance in #1564, so a fix will need to preserve that type-level structure while correctly typing the runtime
childrenproperty.Keeping this open as a types bug.