MCPcopy
hub / github.com/loopbackio/loopback-next / asLifeCycleObserver

Function asLifeCycleObserver

packages/core/src/lifecycle.ts:63–65  ·  view source on GitHub ↗
(binding: Binding<T>)

Source from the content-addressed store, hash-verified

61 * @param binding - Binding object
62 */
63export function asLifeCycleObserver<T = unknown>(binding: Binding<T>) {
64 return binding.tag(CoreTags.LIFE_CYCLE_OBSERVER);
65}
66
67/**
68 * Find all life cycle observer bindings. By default, a binding tagged with

Callers 1

lifecycle.unit.tsFile · 0.85

Calls 1

tagMethod · 0.80

Tested by

no test coverage detected