Skip to content

Commit 2b9118a

Browse files
Merge pull request #15380 from SocketSomeone/patch-2
refactor: improve module typings
2 parents 8b5455a + 0701ef4 commit 2b9118a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/injector/module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ export class Module {
554554
return this._injectables.has(token);
555555
}
556556

557-
public getProviderByKey<T = any>(name: InjectionToken): InstanceWrapper<T> {
557+
public getProviderByKey<T = any>(
558+
name: InjectionToken<T>,
559+
): InstanceWrapper<T> {
558560
return this._providers.get(name) as InstanceWrapper<T>;
559561
}
560562

0 commit comments

Comments
 (0)