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
I tried to fix this locally with no success.
It seems the infer T in the PathConfigMap type no longer works like before.
I already commented this here: #9897 (comment).
Current behavior
When typing a nested navigation as shown in the documentation with
TypeScript falls back to
any
instead of the correct type ofSubPathConfig
and allowsSub_2_1
to have any kind of sub-screens as a result.Expected behavior
Sub-screens of sub-screens should be correctly restricted.
Reproduction
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBDAnmApnA3nAMsAdgazwHMB5MGYCXAZwBo4A5AQwDdgimZoBlAYyhQpcABSZQmIanAC+cAGZQIIOAHIAAgKa8YAWlyt2nSrgD0+iixQqA3AChbeGCihytaAEKbCuIqJgALAGEqOXYMWzhIuG4AVwAjAH0ARgAuDAR-TjSVAHdofGoVGTso6PiEgCY05jYOLig+ASFRcUkAHli4vyCQ9gA+O2l7R2dXXjRO7uDcUKJw0s7K5LTMAKzVOK9C4tsh2xQAD0hYOF4qanhNiHwhHAJiNLvvUnJjajbPFCZnqd6iPrgAF55lEwAJQgcUNQ0gBtAC6tAiUTOM3YKyRpUi1H4gho6MxBLKiVS6TAnH82SK0kRhMxiyqINpBLJAUpcBpTIJ2KaePCJhMnMxAD0APy2fmC0oBKFoaj+CAxAA2ABM4LgIJc0AADJi4RBa+hxGLwLWTcnTWZajGSqL05aMm2lFkU1QqDmO0rc3HQh0eqIStQwag6Q6obQhqCKKDWv2RAAq-mcKG48qVyoYGvcyZxQh96CGsaiBdjxcdpaZ1JjRfdMkR0msQA
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: