@@ -40,7 +40,7 @@ export class ContainerResolver {
4040 * @returns {Definition|V }
4141 */
4242 public getDefinition ( key ) : Definition {
43- return this . definitions . get ( key ) ;
43+ return this . definitions . get ( key ) as Definition ;
4444 }
4545
4646 /**
@@ -66,7 +66,7 @@ export class ContainerResolver {
6666 let factoryProxy = new FactoryAutoProxy ( this , definition ) ;
6767 internalDefinition = new Definition ( definition , factoryProxy , undefined , FactoryMethod . OBJECT ) ;
6868 } else {
69- internalDefinition = this . definitions . get ( definition ) ;
69+ internalDefinition = this . definitions . get ( definition ) as Definition ;
7070 }
7171
7272 if ( ! internalDefinition ) {
@@ -170,7 +170,7 @@ export class ContainerResolver {
170170 let constructor = definition . definitionConstructor ;
171171
172172 if ( this . definitions . has ( constructor ) && constructor != definition . key ) {
173- constructor = this . resolveConstructor ( this . definitions . get ( constructor ) ) ;
173+ constructor = this . resolveConstructor ( this . definitions . get ( constructor ) as Definition ) ;
174174 }
175175 return constructor ;
176176 }
@@ -230,7 +230,7 @@ export class ContainerResolver {
230230 private resolveConstructorArgumentsFromDefinition ( definition : Definition ) : Array < any > | undefined {
231231 let constructorArgs : any [ ] | undefined = definition . constructorArgs ;
232232 if ( ! constructorArgs && this . definitions . has ( definition . definitionConstructor ) && ( definition . definitionConstructor != definition . key ) ) {
233- constructorArgs = this . resolveConstructorArgumentsFromDefinition ( this . definitions . get ( definition . definitionConstructor ) ) ;
233+ constructorArgs = this . resolveConstructorArgumentsFromDefinition ( this . definitions . get ( definition . definitionConstructor ) as Definition ) ;
234234 }
235235 return constructorArgs ;
236236 }
0 commit comments