@@ -34,12 +34,12 @@ export class CompileTypeMetadata {
3434 this . isHost = normalizeBool ( isHost ) ;
3535 }
3636
37- static fromJson ( data : StringMap < string , any > ) : CompileTypeMetadata {
37+ static fromJson ( data : { [ key : string ] : any } ) : CompileTypeMetadata {
3838 return new CompileTypeMetadata (
3939 { name : data [ 'name' ] , moduleUrl : data [ 'moduleUrl' ] , isHost : data [ 'isHost' ] } ) ;
4040 }
4141
42- toJson ( ) : StringMap < string , any > {
42+ toJson ( ) : { [ key : string ] : any } {
4343 return {
4444 // Note: Runtime type can't be serialized...
4545 'name' : this . name ,
@@ -72,7 +72,7 @@ export class CompileTemplateMetadata {
7272 this . ngContentSelectors = isPresent ( ngContentSelectors ) ? ngContentSelectors : [ ] ;
7373 }
7474
75- static fromJson ( data : StringMap < string , any > ) : CompileTemplateMetadata {
75+ static fromJson ( data : { [ key : string ] : any } ) : CompileTemplateMetadata {
7676 return new CompileTemplateMetadata ( {
7777 encapsulation : isPresent ( data [ 'encapsulation' ] ) ?
7878 VIEW_ENCAPSULATION_VALUES [ data [ 'encapsulation' ] ] :
@@ -85,7 +85,7 @@ export class CompileTemplateMetadata {
8585 } ) ;
8686 }
8787
88- toJson ( ) : StringMap < string , any > {
88+ toJson ( ) : { [ key : string ] : any } {
8989 return {
9090 'encapsulation' :
9191 isPresent ( this . encapsulation ) ? serializeEnum ( this . encapsulation ) : this . encapsulation ,
@@ -109,7 +109,7 @@ export class CompileDirectiveMetadata {
109109 changeDetection ?: ChangeDetectionStrategy ,
110110 inputs ?: string [ ] ,
111111 outputs ?: string [ ] ,
112- host ?: StringMap < string , string > ,
112+ host ?: { [ key : string ] : string } ,
113113 lifecycleHooks ?: LifecycleHooks [ ] ,
114114 template ?: CompileTemplateMetadata
115115 } = { } ) : CompileDirectiveMetadata {
@@ -169,11 +169,11 @@ export class CompileDirectiveMetadata {
169169 selector : string ;
170170 exportAs : string ;
171171 changeDetection : ChangeDetectionStrategy ;
172- inputs : StringMap < string , string > ;
173- outputs : StringMap < string , string > ;
174- hostListeners : StringMap < string , string > ;
175- hostProperties : StringMap < string , string > ;
176- hostAttributes : StringMap < string , string > ;
172+ inputs : { [ key : string ] : string } ;
173+ outputs : { [ key : string ] : string } ;
174+ hostListeners : { [ key : string ] : string } ;
175+ hostProperties : { [ key : string ] : string } ;
176+ hostAttributes : { [ key : string ] : string } ;
177177 lifecycleHooks : LifecycleHooks [ ] ;
178178 template : CompileTemplateMetadata ;
179179 constructor ( { type, isComponent, dynamicLoadable, selector, exportAs, changeDetection, inputs,
@@ -184,11 +184,11 @@ export class CompileDirectiveMetadata {
184184 selector ?: string ,
185185 exportAs ?: string ,
186186 changeDetection ?: ChangeDetectionStrategy ,
187- inputs ?: StringMap < string , string > ,
188- outputs ?: StringMap < string , string > ,
189- hostListeners ?: StringMap < string , string > ,
190- hostProperties ?: StringMap < string , string > ,
191- hostAttributes ?: StringMap < string , string > ,
187+ inputs ?: { [ key : string ] : string } ,
188+ outputs ?: { [ key : string ] : string } ,
189+ hostListeners ?: { [ key : string ] : string } ,
190+ hostProperties ?: { [ key : string ] : string } ,
191+ hostAttributes ?: { [ key : string ] : string } ,
192192 lifecycleHooks ?: LifecycleHooks [ ] ,
193193 template ?: CompileTemplateMetadata
194194 } = { } ) {
@@ -207,7 +207,7 @@ export class CompileDirectiveMetadata {
207207 this . template = template ;
208208 }
209209
210- static fromJson ( data : StringMap < string , any > ) : CompileDirectiveMetadata {
210+ static fromJson ( data : { [ key : string ] : any } ) : CompileDirectiveMetadata {
211211 return new CompileDirectiveMetadata ( {
212212 isComponent : data [ 'isComponent' ] ,
213213 dynamicLoadable : data [ 'dynamicLoadable' ] ,
@@ -229,7 +229,7 @@ export class CompileDirectiveMetadata {
229229 } ) ;
230230 }
231231
232- toJson ( ) : StringMap < string , any > {
232+ toJson ( ) : { [ key : string ] : any } {
233233 return {
234234 'isComponent' : this . isComponent ,
235235 'dynamicLoadable' : this . dynamicLoadable ,
0 commit comments