Skip to content

Commit

Permalink
Update src/Injectable.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantin Burov <[email protected]>
  • Loading branch information
mikalai-snap and kburov-sc committed Oct 29, 2024
1 parent 9ac0ed3 commit b5e7056
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Injectable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServicesFromTokenizedParams<Tokens, Params>, Tokens, Token, Service>
: never {
): ReturnType<typeof Injectable> {
return Injectable(token, dependencies, fn);
}

Expand Down

0 comments on commit b5e7056

Please sign in to comment.