Skip to content

Commit

Permalink
change resolve declarations order
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzli committed Jul 29, 2021
1 parent a1346ac commit 2fdc753
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ export interface AwilixContainer<Cradle extends object = any> {
* @return {*}
* Whatever was resolved.
*/
resolve<T>(name: string | symbol, resolveOptions?: ResolveOptions): T
resolve<K extends keyof Cradle>(
name: K,
resolveOptions?: ResolveOptions
): Cradle[K]
/**
* Resolves the registration with the given name.
*
Expand All @@ -90,10 +93,7 @@ export interface AwilixContainer<Cradle extends object = any> {
* @return {*}
* Whatever was resolved.
*/
resolve<K extends keyof Cradle>(
name: K,
resolveOptions?: ResolveOptions
): Cradle[K]
resolve<T>(name: string | symbol, resolveOptions?: ResolveOptions): T
/**
* Checks if the registration with the given name exists.
*
Expand Down

0 comments on commit 2fdc753

Please sign in to comment.