Update container.ts

This commit is contained in:
Jacob Nguyen
2024-06-04 00:44:55 -05:00
committed by GitHub
parent b8566a4500
commit 3f824d6599

View File

@@ -1,7 +1,7 @@
function hasCallableMethod(obj: object, name: PropertyKey) {
//@ts-ignore
return Object.hasOwn(obj, name) && typeof obj[name] == 'function';
// object will always be defined
return typeof obj[name] == 'function';
}
/**
* A Depedency injection container capable of adding singletons, firing hooks, and managing IOC within an application