From e3f193e7fb9f7c717502a9691220f1c13d73cf22 Mon Sep 17 00:00:00 2001 From: Konstantin Burov Date: Tue, 26 Nov 2024 21:19:40 +1100 Subject: [PATCH] Assert returned value type --- src/Container.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Container.ts b/src/Container.ts index a96d7c6..e2e655c 100644 --- a/src/Container.ts +++ b/src/Container.ts @@ -421,7 +421,7 @@ export class Container { providesClass = []>( token: Token, cls: InjectableClass - ) => this.providesService(ClassInjectable(token, cls)); + ) => this.providesService(ClassInjectable(token, cls)) as Container>; /** * Registers a static value as a service in the container. This method is ideal for services that do not