mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
Update container.ts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user