File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ registerAuthenticationModule(ApplicationContainer);
18
18
registerUsersModule ( ApplicationContainer ) ;
19
19
registerTodosModule ( ApplicationContainer ) ;
20
20
21
- export function getInjection < T extends keyof DI_RETURN_TYPES > (
22
- key : T
21
+ export function getInjection < T extends keyof typeof DI_SYMBOLS > (
22
+ symbol : T
23
23
) : DI_RETURN_TYPES [ T ] {
24
24
const instrumentationService =
25
25
ApplicationContainer . get < IInstrumentationService > (
@@ -30,8 +30,8 @@ export function getInjection<T extends keyof DI_RETURN_TYPES>(
30
30
{
31
31
name : '(di) getInjection' ,
32
32
op : 'function' ,
33
- attributes : { symbol : key . toString ( ) } ,
33
+ attributes : { symbol : symbol . toString ( ) } ,
34
34
} ,
35
- ( ) => ApplicationContainer . get < DI_RETURN_TYPES [ T ] > ( DI_SYMBOLS [ key ] )
35
+ ( ) => ApplicationContainer . get ( DI_SYMBOLS [ symbol ] )
36
36
) ;
37
37
}
You can’t perform that action at this time.
0 commit comments