MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / isLifeCycleObserverClass

Function isLifeCycleObserverClass

packages/core/src/lifecycle.ts:51–55  ·  view source on GitHub ↗
(
  ctor: Constructor<unknown>,
)

Source from the content-addressed store, hash-verified

49 * @param ctor - A class
50 */
51export function isLifeCycleObserverClass(
52 ctor: Constructor<unknown>,
53): ctor is Constructor<LifeCycleObserver> {
54 return ctor.prototype && isLifeCycleObserver(ctor.prototype);
55}
56
57/**
58 * A `BindingTemplate` function to configure the binding as life cycle observer

Callers 2

componentMethod · 0.90
lifecycle.unit.tsFile · 0.85

Calls 1

isLifeCycleObserverFunction · 0.85

Tested by

no test coverage detected