Modify isAwareOfContainerLifecycle to include function-type instances
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
743e81ae94
commit
9a55623370
@ -48,7 +48,7 @@ export interface AwareOfContainerLifecycle {
|
||||
|
||||
export function isAwareOfContainerLifecycle(what: unknown): what is AwareOfContainerLifecycle {
|
||||
return Boolean(
|
||||
typeof what === 'object'
|
||||
(typeof what === 'object' || typeof what === 'function')
|
||||
&& what !== null
|
||||
&& hasOwnProperty(what, 'awareOfContainerLifecycle')
|
||||
&& what.awareOfContainerLifecycle,
|
||||
|
Loading…
Reference in New Issue
Block a user