Modify isAwareOfContainerLifecycle to include function-type instances
continuous-integration/drone/push Build is passing Details

master
Garrett Mills 10 months ago
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…
Cancel
Save