diff --git a/src/Injectable.ts b/src/Injectable.ts index f3aa7d4..7a53a80 100644 --- a/src/Injectable.ts +++ b/src/Injectable.ts @@ -115,8 +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> +): ReturnType : never { return Injectable(token, dependencies, fn); }