Skip to content

Commit

Permalink
Merge pull request #277 from jeffijoe/docs/readme-container-has
Browse files Browse the repository at this point in the history
docs: rename .has to .hasRegistration
  • Loading branch information
jeffijoe committed Nov 29, 2021
2 parents 4c6b615 + aacf8b1 commit e3cda5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ written in [TypeScript](http://typescriptlang.org). **Make IoC great again!**
- [`container.options`](#containeroptions)
- [`container.resolve()`](#containerresolve)
- [`container.register()`](#containerregister)
- [`container.has()`](#containerhas)
- [`container.hasRegistration()`](#containerhasregistration)
- [`container.loadModules()`](#containerloadmodules)
- [`container.createScope()`](#containercreatescope)
- [`container.build()`](#containerbuild)
Expand Down Expand Up @@ -1042,9 +1042,9 @@ container.register('context', asClass(SessionContext).scoped())
**The object syntax, key-value syntax and chaining are valid for all `register`
calls!**
### `container.has()`
### `container.hasRegistration()`
- `container.has(name: string | symbol): boolean`
- `container.hasRegistration(name: string | symbol): boolean`
Determines if the container has a registration with the given name. Also checks ancestor containers.
Expand Down

0 comments on commit e3cda5a

Please sign in to comment.