Skip to content

Commit 76b472d

Browse files
committed
renaming like previous
1 parent 7187d72 commit 76b472d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

di/container.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ registerAuthenticationModule(ApplicationContainer);
1818
registerUsersModule(ApplicationContainer);
1919
registerTodosModule(ApplicationContainer);
2020

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
2323
): DI_RETURN_TYPES[T] {
2424
const instrumentationService =
2525
ApplicationContainer.get<IInstrumentationService>(
@@ -30,8 +30,8 @@ export function getInjection<T extends keyof DI_RETURN_TYPES>(
3030
{
3131
name: '(di) getInjection',
3232
op: 'function',
33-
attributes: { symbol: key.toString() },
33+
attributes: { symbol: symbol.toString() },
3434
},
35-
() => ApplicationContainer.get<DI_RETURN_TYPES[T]>(DI_SYMBOLS[key])
35+
() => ApplicationContainer.get(DI_SYMBOLS[symbol])
3636
);
3737
}

0 commit comments

Comments
 (0)