(obj: object)
| 40 | * @param obj - An object |
| 41 | */ |
| 42 | export function isLifeCycleObserver(obj: object): obj is LifeCycleObserver { |
| 43 | const candidate = obj as Partial<LifeCycleObserver>; |
| 44 | return lifeCycleMethods.some(m => typeof candidate[m] === 'function'); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Test if a class implements LifeCycleObserver |
no outgoing calls
no test coverage detected