Page Contents
Home > @loopback/core > isLifeCycleObserverClass
isLifeCycleObserverClass() function
Test if a class implements LifeCycleObserver
Signature:
export declare function isLifeCycleObserverClass(ctor: Constructor<unknown>): ctor is Constructor<LifeCycleObserver>;
Parameters
Parameter | Type | Description |
---|---|---|
ctor | Constructor<unknown> | A class |
Returns:
ctor is Constructor<LifeCycleObserver>