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 authored Oct 29, 2024
1 parent 9ac0ed3 commit b8c7e36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Injectable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServicesFromTokenizedParams<Tokens, Params>, Tokens, Token, Service>
): ReturnType<typeof Injectable>
: never {
return Injectable(token, dependencies, fn);
}
Expand Down

0 comments on commit b8c7e36

Please sign in to comment.