@@ -38,16 +38,15 @@ export class Route implements RouteDefinition {
3838 path : string ;
3939 component : Type ;
4040 name : string ;
41- // added next two properties to work around https://github.com/Microsoft/TypeScript/issues/4107
42- loader : Function ;
43- redirectTo : string ;
41+ // added next three properties to work around https://github.com/Microsoft/TypeScript/issues/4107
42+ aux : string = null ;
43+ loader : Function = null ;
44+ redirectTo : string = null ;
4445 constructor ( { path, component, name,
4546 data} : { path : string , component : Type , name ?: string , data ?: { [ key : string ] : any } } ) {
4647 this . path = path ;
4748 this . component = component ;
4849 this . name = name ;
49- this . loader = null ;
50- this . redirectTo = null ;
5150 this . data = data ;
5251 }
5352}
@@ -78,7 +77,8 @@ export class AuxRoute implements RouteDefinition {
7877 path : string ;
7978 component : Type ;
8079 name : string ;
81- // added next two properties to work around https://github.com/Microsoft/TypeScript/issues/4107
80+ // added next three properties to work around https://github.com/Microsoft/TypeScript/issues/4107
81+ aux : string = null ;
8282 loader : Function = null ;
8383 redirectTo : string = null ;
8484 constructor ( { path, component, name} : { path : string , component : Type , name ?: string } ) {
@@ -115,6 +115,7 @@ export class AsyncRoute implements RouteDefinition {
115115 path : string ;
116116 loader : Function ;
117117 name : string ;
118+ aux : string = null ;
118119 constructor ( { path, loader, name, data} :
119120 { path : string , loader : Function , name ?: string , data ?: { [ key : string ] : any } } ) {
120121 this . path = path ;
@@ -148,9 +149,10 @@ export class Redirect implements RouteDefinition {
148149 path : string ;
149150 redirectTo : string ;
150151 name : string = null ;
151- // added next property to work around https://github.com/Microsoft/TypeScript/issues/4107
152+ // added next three properties to work around https://github.com/Microsoft/TypeScript/issues/4107
152153 loader : Function = null ;
153154 data : any = null ;
155+ aux : string = null ;
154156 constructor ( { path, redirectTo} : { path : string , redirectTo : string } ) {
155157 this . path = path ;
156158 this . redirectTo = redirectTo ;
0 commit comments