Skip to content

Commit

Permalink
fix(container): set default IdentifierScope
Browse files Browse the repository at this point in the history
  • Loading branch information
freshgum-bubbles committed Sep 17, 2023
1 parent b7f7ba9 commit 017f704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/container-instance.class.mts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class ContainerInstance implements Disposable {
* @throws Error
* This exception is thrown if the container has been disposed.
*/
public has<T = unknown>(identifier: ServiceIdentifier<T>, recursive = true, scope: IdentifierScope): boolean {
public has<T = unknown>(identifier: ServiceIdentifier<T>, recursive = true, scope = IdentifierScope.Any): boolean {
this.throwIfDisposed();

if (ALWAYS_RESOLVABLE.includes(identifier)) {
Expand Down

0 comments on commit 017f704

Please sign in to comment.