Skip to content

Commit

Permalink
Merge pull request #247 from mrzli/improve-resolve-typing
Browse files Browse the repository at this point in the history
Improve resolve typing
  • Loading branch information
jeffijoe committed Aug 11, 2021
2 parents ed0d332 + 8b1cfbb commit c434906
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/container.ts
Expand Up @@ -71,6 +71,19 @@ export interface AwilixContainer<Cradle extends object = any> {
* Pairs resolvers to registration names and registers them.
*/
register(nameAndRegistrationPair: NameAndRegistrationPair<Cradle>): this
/**
* Resolves the registration with the given name.
*
* @param {string} name
* The name of the registration to resolve.
*
* @return {*}
* Whatever was resolved.
*/
resolve<K extends keyof Cradle>(
name: K,
resolveOptions?: ResolveOptions
): Cradle[K]
/**
* Resolves the registration with the given name.
*
Expand Down

0 comments on commit c434906

Please sign in to comment.