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