From b5e70562740d4e3f200d72a5d93995083b789429 Mon Sep 17 00:00:00 2001 From: Mikalai Silivonik Date: Mon, 28 Oct 2024 21:21:03 -0400 Subject: [PATCH] Update src/Injectable.ts Co-authored-by: Konstantin Burov --- src/Injectable.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Injectable.ts b/src/Injectable.ts index f3aa7d4..052b750 100644 --- a/src/Injectable.ts +++ b/src/Injectable.ts @@ -115,9 +115,7 @@ export function InjectableCompat< token: Token, dependencies: Tokens, fn: (...args: Tokens["length"] extends Params["length"] ? Params : void[]) => Service -): Tokens["length"] extends Params["length"] - ? InjectableFunction, Tokens, Token, Service> - : never { +): ReturnType { return Injectable(token, dependencies, fn); }