Skip to content

Commit

Permalink
fix: addresses PR#342 suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
zb-sj committed Oct 12, 2023
1 parent 8c902de commit cb55556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ export function asClass<T = {}>(
* Resolves to the specified registration.
*/
export function aliasTo<T>(
...args: Parameters<AwilixContainer['resolve']>
name: Parameters<AwilixContainer['resolve']>[0]
): Resolver<T> {
return {
resolve(container) {
return container.resolve(...args)
return container.resolve(name)
},
}
}
Expand Down

0 comments on commit cb55556

Please sign in to comment.