Is there a way to include the whenRoute optional parameter in the data section of the Route type without directly altering the Angular types file?
const routes: Routes = [
{
path: 'pages',
loadChildren: () => import('./pages/pages.module').then(m => m.PagesModule),
data: { whenRoute: '/test'}
}
]