66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- import { BaseException , ComponentMetadata , DirectiveMetadata , HostBindingMetadata , HostListenerMetadata , Injectable , InputMetadata , OutputMetadata , QueryMetadata , resolveForwardRef } from '@angular/core' ;
10-
9+ import { ComponentMetadata , DirectiveMetadata , HostBindingMetadata , HostListenerMetadata , Injectable , InputMetadata , OutputMetadata , QueryMetadata , Type , resolveForwardRef } from '@angular/core' ;
1110import { ReflectorReader , reflector } from '../core_private' ;
12-
1311import { StringMapWrapper } from './facade/collection' ;
14- import { Type , isPresent , stringify } from './facade/lang' ;
12+ import { BaseException } from './facade/exceptions' ;
13+ import { isPresent , stringify } from './facade/lang' ;
1514import { splitAtColon } from './util' ;
1615
1716function _isDirectiveMetadata ( type : any ) : type is DirectiveMetadata {
@@ -32,7 +31,7 @@ export class DirectiveResolver {
3231 /**
3332 * Return {@link DirectiveMetadata} for a given `Type`.
3433 */
35- resolve ( type : Type , throwIfNotFound = true ) : DirectiveMetadata {
34+ resolve ( type : Type < any > , throwIfNotFound = true ) : DirectiveMetadata {
3635 var typeMetadata = this . _reflector . annotations ( resolveForwardRef ( type ) ) ;
3736 if ( isPresent ( typeMetadata ) ) {
3837 var metadata = typeMetadata . find ( _isDirectiveMetadata ) ;
@@ -49,7 +48,7 @@ export class DirectiveResolver {
4948
5049 private _mergeWithPropertyMetadata (
5150 dm : DirectiveMetadata , propertyMetadata : { [ key : string ] : any [ ] } ,
52- directiveType : Type ) : DirectiveMetadata {
51+ directiveType : Type < any > ) : DirectiveMetadata {
5352 var inputs : string [ ] = [ ] ;
5453 var outputs : string [ ] = [ ] ;
5554 var host : { [ key : string ] : string } = { } ;
@@ -90,7 +89,7 @@ export class DirectiveResolver {
9089
9190 private _merge (
9291 dm : DirectiveMetadata , inputs : string [ ] , outputs : string [ ] , host : { [ key : string ] : string } ,
93- queries : { [ key : string ] : any } , directiveType : Type ) : DirectiveMetadata {
92+ queries : { [ key : string ] : any } , directiveType : Type < any > ) : DirectiveMetadata {
9493 let mergedInputs : string [ ] ;
9594
9695 if ( isPresent ( dm . inputs ) ) {
0 commit comments