@@ -147,8 +147,8 @@ export class ContainerInstance {
147147 */
148148 getAsync < T > ( identifier : ServiceIdentifier < T > ) : Promise < T > {
149149 const globalContainer = Container . of ( undefined ) ;
150- let service = globalContainer . findService ( identifier ) ;
151- let scopedService = this . findService ( identifier ) ;
150+ const service = globalContainer . findService ( identifier ) ;
151+ const scopedService = this . findService ( identifier ) ;
152152
153153 if ( service && service . global === true ) return this . getServiceValueAsync ( identifier , service ) ;
154154
@@ -472,7 +472,7 @@ export class ContainerInstance {
472472 if ( service . factory instanceof Array ) {
473473 // use special [Type, "create"] syntax to allow factory services
474474 // in this case Type instance will be obtained from Container and its method "create" will be called
475- value = ( ( await this . getAsync ( service . factory [ 0 ] ) ) as any ) [ service . factory [ 1 ] ] ( ...params ) ;
475+ value = ( await this . getAsync ( service . factory [ 0 ] ) ) [ service . factory [ 1 ] ] ( ...params ) ;
476476 } else {
477477 // regular factory function
478478 value = service . factory ( ...params , this ) ;
@@ -488,6 +488,7 @@ export class ContainerInstance {
488488 // need to be injected, and user can use provided container to get instances he needs
489489 params . push ( this ) ;
490490
491+ // eslint-disable-next-line prefer-spread
491492 value = new ( type . bind . apply ( type , params ) ) ( ) ;
492493 }
493494
0 commit comments