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
exporttypeRouteData<Data={}>={propA: boolean;}&Data;exportinterfaceRoute<Data={}>{data?: RouteData<Data>;children?: Route<RouteData<Data>>[];}constroutes: Route[]=[{data: {propA: true},// !!! put a number here and there'll be an ERROR !!!children: [{data: {propA: true},// !!! put a number here and there'll be an ERROR !!!children: [{data: {propA: true},// !!! put a number here and there'll be an ERROR !!!children: [{data: {propA: true},// !!! put a number here and there'll be an ERROR !!!children: [{data: {propA: 3,// this one's just fine},},],},],},],},],},];
Expected behavior:
Recursive should be working after 2 or 3 levels deep?
Actual behavior:
The 3rd or 4th level of recursion is not working correctly and is probably inferring a type any.
That said, within VSC when I hover the property that should error and doesn't, the type displayed is the right one:
TypeScript Version: 2.9.2
Search Terms:
Code
Expected behavior:
Recursive should be working after 2 or 3 levels deep?
Actual behavior:
The 3rd or 4th level of recursion is not working correctly and is probably inferring a type
any
.That said, within VSC when I hover the property that should error and doesn't, the type displayed is the right one:

Playground Link: Playground repro
Related Issues:
Might eventually be related to #25860 or #23897 but I don't think it's the exact same case.
The text was updated successfully, but these errors were encountered: